fix let_do parser

This commit is contained in:
Joey Hess 2015-02-22 19:39:20 -04:00
parent 3d9be9c829
commit 900c50a305

View file

@ -615,8 +615,8 @@ mangleCode = flip_colon
-}
let_do = parsecAndReplace $ do
void $ string "= do { let "
x <- hstoken
ws <- many $ oneOf " \t\r\n"
x <- many $ noneOf "=\r\n"
ws <- many1 $ oneOf " \t\r\n"
void $ string "= "
return $ "= do { " ++ x ++ " <- return $ "