mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2025-01-07 00:42:42 +03:00
the grammars overlap so there should be a ‘try’
This commit is contained in:
parent
181bad13ec
commit
7c0341af72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user