We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ch02/parsing/exercise_4.hs
If we use
main = do print (parse parseExpr "err..." "#t")
, the bug will occur:
Left "err..." (line 1, column 2): unexpected "t" expecting "d", "b", "o" or "x"
Because parseNumber conflicts with parseBool. It will consume a # symbol. Changing code at line 97 to be <|> try parseNumber will fix the bug;)
parseNumber
parseBool
#
<|> try parseNumber
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If we use
, the bug will occur:
Because
parseNumber
conflicts withparseBool
. It will consume a#
symbol.Changing code at line 97 to be
<|> try parseNumber
will fix the bug;)The text was updated successfully, but these errors were encountered: