I am following an incredibly detailed Parsec tutorial. However, some examples do not work as expected, e.g.,
ghci> parseWithWhitespace simpleExpr5 "(1+2)"
Left (line 1, column 3):
unexpected "+"
expecting digit or ")"
Is it because the tutorial is outdated? Has anyone tried it recently?
There is a typo in the tutorial. term5
should be
term5 = term simpleExpr5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With