mirror of
https://github.com/sdiehl/write-you-a-haskell.git
synced 2024-08-17 07:30:24 +03:00
The text doesn't mention ambigous parses, and the code didn't handle them. The easiest way to fix the code without necessarily having to write about this case is to hande it as parse error and merge it with the no parse case by replacing the [] pattern with _. |
||
---|---|---|
.. | ||
calc | ||
parsec.hs |