megaparsec/Text/Parsec
Roman Cheplyaka 860764939c Track current position in the 'tokens' function
Example

Before:

  Prelude Text.Parsec> parseTest (string "abcd") "abbe"
  parse error at (line 1, column 1):
  unexpected "b"
  expecting "abcd"

After:

  *Main> parseTest (string "abcd") "abbe"
  parse error at (line 1, column 3):
  unexpected "b"
  expecting "cd"

Before this patch, 'b' was reported to be found at 1:1, which is clearly not the
case. After this patch, we correctly report the location of the wrong token, and
also report missing tokens starting from that position.
2014-04-04 01:28:21 +03: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 Track current position in the 'tokens' function 2014-04-04 01:28:21 +03:00
String.hs moved Stream instance for lists from Text.Parsec.String into Text.Parsec.Prim and removed -fno-warn-orphans from String.hs pragma 2014-03-24 07:53:21 -07:00
Text.hs add Stream Text instances 2011-10-08 18:17:18 +00:00
Token.hs Fix haddock module links. 2013-08-21 09:57:13 +00:00