accept longer prefix in case expression fixup
Eg, "Right r_a36iJ ->"
This commit is contained in:
parent
530db25158
commit
367cde30da
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ mangleCode = flip_colon
|
||||||
void newline
|
void newline
|
||||||
indent1 <- many1 $ char ' '
|
indent1 <- many1 $ char ' '
|
||||||
prefix <- manyTill (noneOf "\n") (try (string "-> "))
|
prefix <- manyTill (noneOf "\n") (try (string "-> "))
|
||||||
if length prefix > 10
|
if length prefix > 20
|
||||||
then unexpected "too long a prefix"
|
then unexpected "too long a prefix"
|
||||||
else if "\\ " `isInfixOf` prefix
|
else if "\\ " `isInfixOf` prefix
|
||||||
then unexpected "lambda expression"
|
then unexpected "lambda expression"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue