mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-12-18 05:41:39 +03:00
If ‘x’ in ‘x >>= y’ consumes input but produces some hints, we should accumulate them nonetheless. Why it's important can be demonstrated by the following test: many (char 'a') >> many (char 'b') >> eof This should fail on input "ac" with the following message: parse error at line 1, column 2: unexpected 'c' expecting 'a', 'b' or end of input As you can see even though parser ‘many (char 'a')’ consumed input, its hits may be useful later. |
||
---|---|---|
.. | ||
Megaparsec | ||
Megaparsec.hs |