write-you-a-haskell/chapter3
Christian Sievers ca8b771489 chapter3/parsec.hs: handle ambigous parses in runParser
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 _.
2015-01-30 18:20:08 +01:00
..
calc infixOp to prefixOp 2015-01-20 10:48:22 -05:00
parsec.hs chapter3/parsec.hs: handle ambigous parses in runParser 2015-01-30 18:20:08 +01:00