megaparsec/Text
Roman Cheplyaka b8990ab042 When merging error messages, prefer known messages to unknown ones
This fixes a regression introduced by:

Sun Feb 20 18:24:22 EET 2011  Roman Cheplyaka <roma@ro-che.info>
  * Choose the longest match when merging error messages

The source of the regression is that parsec sometimes generates dummy (aka
"unknown") error messages when no actual error has occurred.

So, when merging errors, before simply looking at the positions we should check
if one of them is unknown and just ignore it.

Reported by Matthias Hörmann.
2012-05-30 22:38:09 +00:00
..
Parsec When merging error messages, prefer known messages to unknown ones 2012-05-30 22:38:09 +00:00
ParserCombinators Add missing Postfix constructor in compatibility module. 2008-07-26 19:54:35 +00:00
Parsec.hs Changing maintainer email 2008-01-20 04:44:41 +00:00