do not try to match spaces before a pattern.

This commit is contained in:
Julia Longtin 2019-07-15 22:55:48 +01:00
parent c2c5a7428c
commit fd1ccd17d1

View File

@ -97,10 +97,11 @@ suite = (fmap return computation <|> do
stmts <- many (try computation)
_ <- whiteSpace
_ <- char '}'
_ <- whiteSpace
return stmts
) <?> " suite"
-- | commenting out a comuptation: use % or * before the statement, and it will not be run.
-- | commenting out a computation: use % or * before the statement, and it will not be run.
throwAway :: GenParser Char st StatementI
throwAway = do
pos <- sourcePos