the grammars overlap so there should be a ‘try’

This commit is contained in:
mrkkrp 2015-07-31 20:31:38 +06:00
parent 181bad13ec
commit 7c0341af72

View File

@ -458,7 +458,7 @@ makeTokenParser languageDef =
float = lexeme ffloat <?> "unsigned float"
float' = signed float <?> "float"
ffloat = read <$> (ffir <|> fsec)
ffloat = read <$> (try ffir <|> fsec)
ffir = do
decimal1 <- fDec