megaparsec/Text/Parsec
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
..
ByteString cleanud up/expanded compatability modules. 2008-02-17 03:53:24 +00:00
Text add Stream Text instances 2011-10-08 18:17:18 +00:00
ByteString.hs cleanud up/expanded compatability modules. 2008-02-17 03:53:24 +00:00
Char.hs Clean most warnings 2008-02-13 04:32:24 +00:00
Combinator.hs lookAhead: do not consume input on success; update documentation 2011-02-20 16:29:20 +00:00
Error.hs When merging error messages, prefer known messages to unknown ones 2012-05-30 22:38:09 +00:00
Expr.hs Haddock documentation for Text.Parsec.Expr and dropped unused t type variable. 2008-01-20 06:43:50 +00:00
Language.hs Haddock documentation for Text.Parsec.Language 2008-01-22 04:06:32 +00:00
Perm.hs Clean most warnings 2008-02-13 04:32:24 +00:00
Pos.hs Minor fix to the CPP and bump version. 2011-01-08 17:28:44 +00:00
Prim.hs Documentation fix 2011-12-28 22:29:53 +00:00
String.hs move core data type over to CPS 2009-03-02 00:20:00 +00:00
Text.hs add Stream Text instances 2011-10-08 18:17:18 +00:00
Token.hs Fix reserved name recognition for case-insensitive languages. 2011-10-08 18:04:54 +00:00