accept longer prefix in case expression fixup

Eg, "Right r_a36iJ ->"
This commit is contained in:
Joey Hess 2015-02-22 16:17:32 -04:00
parent 530db25158
commit 367cde30da

View file

@ -451,7 +451,7 @@ mangleCode = flip_colon
void newline
indent1 <- many1 $ char ' '
prefix <- manyTill (noneOf "\n") (try (string "-> "))
if length prefix > 10
if length prefix > 20
then unexpected "too long a prefix"
else if "\\ " `isInfixOf` prefix
then unexpected "lambda expression"