megaparsec/Text
mrkkrp d45c2c0658 accumulate hints when previous parser consumes
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.
2015-08-20 01:38:00 +06:00
..
Megaparsec accumulate hints when previous parser consumes 2015-08-20 01:38:00 +06:00
Megaparsec.hs major improvements of ‘Text.Megaparsec.Prim’ 2015-08-17 21:58:59 +06:00