我关注an incredibly detailed Parsec tutorial。但是,某些示例不能按预期工作,例如,
ghci> parseWithWhitespace simpleExpr5 "(1+2)" Left (line 1, column 3): unexpected "+" expecting digit or ")"
是因为教程是outdated吗?最近有人试过吗?
教程中有一个拼写错误。 term5应该是
term5
term5 = term simpleExpr5