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
Roman Cheplyaka
1bac97f3b5
Documentation fix
2011-12-28 22:29:53 +00:00
Antoine Latter
18cab005a3
version bump for release
2011-10-08 18:18:44 +00:00
Antoine Latter
b7fed21061
add Stream Text instances
2011-10-08 18:17:18 +00:00
Antoine Latter
43087fead0
Fix reserved name recognition for case-insensitive languages.
2011-10-08 18:04:54 +00:00
Roman Cheplyaka
383963979d
lookAhead: do not consume input on success; update documentation
2011-02-20 16:29:20 +00:00
Roman Cheplyaka
eaf3a6de71
try: do not reset the error position
2011-02-20 16:24:49 +00:00
Roman Cheplyaka
0a10e27db4
Choose the longest match when merging error messages
2011-02-20 16:24:22 +00:00
Antoine Latter
e66d3d07a8
add source repository information to package description
2011-01-29 15:59:20 +00:00
Antoine Latter
4467dfcf3b
remove ghc-pro-options from package description
2011-01-29 15:52:26 +00:00
Antoine Latter
c71d13cfe7
update maintainer in package description
2011-01-29 15:47:58 +00:00
Derek Elkins
eef48c8c17
Minor fix to the CPP and bump version.
2011-01-08 17:28:44 +00:00
Antoine Latter
32f608c83a
remove dependency on package 'syb'
2010-09-08 05:37:47 +00:00
Antoine Latter
f234bc7353
Carry forward error messages when parsers don't consume input
2010-10-03 22:55:54 +00:00
Derek Elkins
2f4f4dba4a
Fixing typos.
2010-09-27 23:19:05 +00:00
Derek Elkins
b5ce757ed7
Update Daan's email address
2010-03-04 04:09:29 +00:00
Derek Elkins
751ae41170
Generalize notFollowedBy
2010-03-04 03:45:53 +00:00
Antoine Latter
4b2c5f9956
version bump
2010-03-04 03:04:19 +00:00
Antoine Latter
84e000211a
add explicit export list to .Prim
...
This was derived from the haddock docs on Hackage.
2010-03-04 03:03:44 +00:00
Antoine Latter
5d6b3fabaa
add documentation to new functions in .Prim
2010-03-04 03:03:27 +00:00
Bryan O'Sullivan
f4f922dfe0
Resolve a small conflict.
2009-12-15 21:44:03 +00:00
Antoine Latter
6e69c37546
another fix for many
...
allow many to return error-empty
2009-11-23 18:06:31 +00:00
Antoine Latter
ac21efe9f9
specify base version
2009-11-22 17:41:25 +00:00
Antoine Latter
299c257fa1
fix 'many'
...
Previously 'many' was not returning the last successful parse
2009-11-22 17:15:01 +00:00
Antoine Latter
a98a3ccbca
move core data type over to CPS
2009-03-02 00:20:00 +00:00
Derek Elkins
200492f57c
Documentation fix: typo in chainl1
2009-10-24 18:38:37 +00:00
Derek Elkins
77d48632dc
Bump version number and make compatible with base-4 and base-3.0.3+.
2009-09-09 23:11:34 +00:00
kramer
e97a1f707f
Make parsec syb friendly.
2008-12-26 08:29:54 +00:00
Derek Elkins
684cda921e
Remove strictness in the return value. This violates the monad laws. Add note about user state strictness.
2009-02-14 22:28:22 +00:00
Derek Elkins
9b5b6d3bbe
Add missing Postfix constructor in compatibility module.
2008-07-26 19:54:35 +00:00
Derek Elkins
b75677a274
Update the .cabal file for Cabal >= 1.2
2008-03-06 05:02:48 +00:00
Derek Elkins
79905e57bf
Touch up haddock formatting
2008-03-06 01:25:31 +00:00
Derek Elkins
4be9d411e6
Version number bump
2008-03-06 01:22:16 +00:00
Derek Elkins
493f9d333f
Minor -Wall clean-up
2008-03-06 01:20:54 +00:00
Derek Elkins
d3b3fa5427
Stream instances guidelines
2008-03-06 01:17:54 +00:00
aslatter
7cc71ef014
cleanud up/expanded compatability modules.
2008-02-17 03:53:24 +00:00
Derek Elkins
ce708e0972
Clean most warnings
2008-02-13 04:32:24 +00:00
aslatter
f549214afc
A few mtl instances
2008-02-05 05:45:50 +00:00
aslatter
77fecf1829
missing case in parserPlus
2008-02-02 21:52:25 +00:00
aslatter
0793a4cf37
added a few language pragmas
...
GHCi 6.8.2 didn't seem to want to load the sources without these added pragmas
2008-02-02 20:14:50 +00:00
aslatter
34ea8270c9
no longer using .Unsafe bytestring packages
2008-02-02 20:09:47 +00:00
Derek Elkins
52e514ac82
Maintainer email in ParserCombinators sub-directory
2008-02-02 04:52:12 +00:00
Derek Elkins
7ae33dc94d
Tweaking Text.Parsec.Token's documentation
2008-01-22 05:25:34 +00:00
Derek Elkins
a79e8e30fe
Haddock documentation for Text.Parsec.Token
2008-01-22 05:14:30 +00:00
Derek Elkins
7b8b087f24
Minor whitespace change in Text.Parsec.Prim.hs
2008-01-22 05:13:24 +00:00
Derek Elkins
3eafd20e3f
Haddock documentation for Text.Parsec.Pos and removed forcePos.
2008-01-22 04:16:19 +00:00
Derek Elkins
fdf1dbfded
Haddock documentation for Text.Parsec.Language
2008-01-22 04:06:32 +00:00
Derek Elkins
c544a22461
Haddock documentation for Text.Parsec.Prim
2008-01-22 01:37:52 +00:00
Derek Elkins
ee69496c3b
Fix some references in the Text.Parsec.Error documentation
2008-01-22 01:35:30 +00:00
Derek Elkins
92ed4bfbe3
Haddock documentation for Text.Parsec.String, Text.Parsec.ByteString, Text.Parsec.ByteString.Lazy and updated maintainer email
2008-01-20 06:59:14 +00:00