packages/parsec.git
5 years agoPost-release version bump
Antoine Latter [Thu, 25 Sep 2014 00:28:13 +0000 (19:28 -0500)] 
Post-release version bump

5 years agoAdd test for #9.
Antoine Latter [Thu, 25 Sep 2014 00:22:35 +0000 (19:22 -0500)] 
Add test for #9.

Also move test for #2 to have a more regular structure for tests aimed at
specific bugs.

5 years agoUpdate changelog.
Antoine Latter [Wed, 10 Sep 2014 01:20:13 +0000 (20:20 -0500)] 
Update changelog.

5 years agoFix off-by-one error in Token charControl.
Antoine Latter [Wed, 10 Sep 2014 01:17:49 +0000 (20:17 -0500)] 
Fix off-by-one error in Token charControl.

Fixes #2.

5 years agoUpdate git ignore file.
Antoine Latter [Wed, 10 Sep 2014 01:15:21 +0000 (20:15 -0500)] 
Update git ignore file.

5 years agoMerge pull request #3 from Daniel-Diaz/master
Antoine Latter [Wed, 10 Sep 2014 00:42:49 +0000 (19:42 -0500)] 
Merge pull request #3 from Daniel-Diaz/master

Support for CRLF line breaks

5 years agoMerge pull request #4 from RyanGlScott/master
Antoine Latter [Wed, 10 Sep 2014 00:30:33 +0000 (19:30 -0500)] 
Merge pull request #4 from RyanGlScott/master

Bump text upper version bounds

5 years agoBump text upper version bounds
RyanGlScott [Tue, 9 Sep 2014 05:08:41 +0000 (00:08 -0500)] 
Bump text upper version bounds

5 years agoRemove reference to darcs in package description.
Antoine Latter [Wed, 23 Jul 2014 01:58:55 +0000 (20:58 -0500)] 
Remove reference to darcs in package description.

5 years agoRenamed 'anyNewline' to 'endOfLine' as suggested in #3 by @aslatter.
Daniel Díaz [Mon, 19 May 2014 11:48:37 +0000 (13:48 +0200)] 
Renamed 'anyNewline' to 'endOfLine' as suggested in #3 by @aslatter.

5 years agoAdded parser for CRLF line breaks and a parser combining LF and CRLF line breaks.
Daniel Díaz [Mon, 12 May 2014 17:09:26 +0000 (19:09 +0200)] 
Added parser for CRLF line breaks and a parser combining LF and CRLF line breaks.

5 years agoNo more orphan 'Stream' instances.
Antoine Latter [Wed, 9 Apr 2014 19:01:24 +0000 (15:01 -0400)] 
No more orphan 'Stream' instances.

The ByteString and Text instances for Stream now live in the
Prim module.

5 years agoAdd git ignore file, remove darcs boring file
Antoine Latter [Wed, 9 Apr 2014 18:59:20 +0000 (14:59 -0400)] 
Add git ignore file, remove darcs boring file

5 years agoTrack current position in the 'tokens' function
Roman Cheplyaka [Thu, 11 Jul 2013 10:57:35 +0000 (13:57 +0300)] 
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.

5 years agoMerge pull request #1 from creswick/master
Antoine Latter [Fri, 28 Mar 2014 04:08:05 +0000 (23:08 -0500)] 
Merge pull request #1 from creswick/master

moved Stream instance for lists (Text.Parsec.String to Text.Parsec.Prim)

5 years agomoved Stream instance for lists from Text.Parsec.String into Text.Parsec.Prim and...
Rogan Creswick [Mon, 24 Mar 2014 14:53:21 +0000 (07:53 -0700)] 
moved Stream instance for lists from Text.Parsec.String into Text.Parsec.Prim and removed -fno-warn-orphans from String.hs pragma

5 years agoModule 'prim' is now 'not home' for haddock links.
Antoine Latter [Mon, 24 Mar 2014 01:08:26 +0000 (20:08 -0500)] 
Module 'prim' is now 'not home' for haddock links.

5 years agoUpdate changelog.
Antoine Latter [Mon, 24 Mar 2014 01:08:12 +0000 (20:08 -0500)] 
Update changelog.

5 years agoExplicitly export symbols from 'Combinator' and 'Prim' from the main
Antoine Latter [Mon, 24 Mar 2014 01:07:39 +0000 (20:07 -0500)] 
Explicitly export symbols from 'Combinator' and 'Prim' from the main
module.

5 years agoExport 'text' instances from 'Text.Parsec'.
Antoine Latter [Mon, 24 Mar 2014 01:07:14 +0000 (20:07 -0500)] 
Export 'text' instances from 'Text.Parsec'.

5 years agoFix some haddocks.
Antoine Latter [Mon, 24 Mar 2014 01:06:48 +0000 (20:06 -0500)] 
Fix some haddocks.

5 years agoAdd 'bug-reports' section to package description.
Antoine Latter [Mon, 24 Mar 2014 01:06:15 +0000 (20:06 -0500)] 
Add 'bug-reports' section to package description.

5 years agoBump version, move to github.
Antoine Latter [Sun, 23 Mar 2014 20:52:23 +0000 (15:52 -0500)] 
Bump version, move to github.

5 years agoBump version and allow newer "text" dependency
Antoine Latter [Sat, 11 Jan 2014 05:59:42 +0000 (05:59 +0000)] 
Bump version and allow newer "text" dependency

5 years agoAllow 'text' version 1.0
Antoine Latter [Mon, 9 Dec 2013 13:04:14 +0000 (13:04 +0000)] 
Allow 'text' version 1.0

5 years agoVersion bump
Antoine Latter [Mon, 9 Dec 2013 13:03:57 +0000 (13:03 +0000)] 
Version bump

6 years agoFix haddock module links.
Bjorn Buckwalter [Wed, 21 Aug 2013 09:57:13 +0000 (09:57 +0000)] 
Fix haddock module links.

7 years agoadd changefile to package description
Antoine Latter [Tue, 12 Jun 2012 02:07:43 +0000 (02:07 +0000)] 
add changefile to package description

7 years agoAdd changefile, update for release
Antoine Latter [Tue, 12 Jun 2012 01:59:11 +0000 (01:59 +0000)] 
Add changefile, update for release

7 years agoAdd versioned 'boring' file for darcs
Antoine Latter [Tue, 12 Jun 2012 01:57:53 +0000 (01:57 +0000)] 
Add versioned 'boring' file for darcs

7 years agobump version for release
Antoine Latter [Tue, 12 Jun 2012 01:51:58 +0000 (01:51 +0000)] 
bump version for release

7 years agoWhen merging error messages, prefer known messages to unknown ones
Roman Cheplyaka [Wed, 30 May 2012 22:38:09 +0000 (22:38 +0000)] 
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.

7 years agoDocumentation fix
Roman Cheplyaka [Wed, 28 Dec 2011 22:29:53 +0000 (22:29 +0000)] 
Documentation fix

8 years agoversion bump for release
Antoine Latter [Sat, 8 Oct 2011 18:18:44 +0000 (18:18 +0000)] 
version bump for release

8 years agoadd Stream Text instances
Antoine Latter [Sat, 8 Oct 2011 18:17:18 +0000 (18:17 +0000)] 
add Stream Text instances

8 years agoFix reserved name recognition for case-insensitive languages.
Antoine Latter [Sat, 8 Oct 2011 18:04:54 +0000 (18:04 +0000)] 
Fix reserved name recognition for case-insensitive languages.

8 years agolookAhead: do not consume input on success; update documentation
Roman Cheplyaka [Sun, 20 Feb 2011 16:29:20 +0000 (16:29 +0000)] 
lookAhead: do not consume input on success; update documentation

8 years agotry: do not reset the error position
Roman Cheplyaka [Sun, 20 Feb 2011 16:24:49 +0000 (16:24 +0000)] 
try: do not reset the error position

8 years agoChoose the longest match when merging error messages
Roman Cheplyaka [Sun, 20 Feb 2011 16:24:22 +0000 (16:24 +0000)] 
Choose the longest match when merging error messages

8 years agoadd source repository information to package description
Antoine Latter [Sat, 29 Jan 2011 15:59:20 +0000 (15:59 +0000)] 
add source repository information to package description

8 years agoremove ghc-pro-options from package description
Antoine Latter [Sat, 29 Jan 2011 15:52:26 +0000 (15:52 +0000)] 
remove ghc-pro-options from package description

8 years agoupdate maintainer in package description
Antoine Latter [Sat, 29 Jan 2011 15:47:58 +0000 (15:47 +0000)] 
update maintainer in package description

8 years agoMinor fix to the CPP and bump version.
Derek Elkins [Sat, 8 Jan 2011 17:28:44 +0000 (17:28 +0000)] 
Minor fix to the CPP and bump version.

9 years agoremove dependency on package 'syb'
Antoine Latter [Wed, 8 Sep 2010 05:37:47 +0000 (05:37 +0000)] 
remove dependency on package 'syb'

9 years agoCarry forward error messages when parsers don't consume input
Antoine Latter [Sun, 3 Oct 2010 22:55:54 +0000 (22:55 +0000)] 
Carry forward error messages when parsers don't consume input

9 years agoFixing typos.
Derek Elkins [Mon, 27 Sep 2010 23:19:05 +0000 (23:19 +0000)] 
Fixing typos.

9 years agoUpdate Daan's email address
Derek Elkins [Thu, 4 Mar 2010 04:09:29 +0000 (04:09 +0000)] 
Update Daan's email address

9 years agoGeneralize notFollowedBy
Derek Elkins [Thu, 4 Mar 2010 03:45:53 +0000 (03:45 +0000)] 
Generalize notFollowedBy

9 years agoversion bump
Antoine Latter [Thu, 4 Mar 2010 03:04:19 +0000 (03:04 +0000)] 
version bump

9 years agoadd explicit export list to .Prim
Antoine Latter [Thu, 4 Mar 2010 03:03:44 +0000 (03:03 +0000)] 
add explicit export list to .Prim

This was derived from the haddock docs on Hackage.

9 years agoadd documentation to new functions in .Prim
Antoine Latter [Thu, 4 Mar 2010 03:03:27 +0000 (03:03 +0000)] 
add documentation to new functions in .Prim

9 years agoResolve a small conflict.
Bryan O'Sullivan [Tue, 15 Dec 2009 21:44:03 +0000 (21:44 +0000)] 
Resolve a small conflict.

9 years agoanother fix for many
Antoine Latter [Mon, 23 Nov 2009 18:06:31 +0000 (18:06 +0000)] 
another fix for many
allow many to return error-empty

9 years agospecify base version
Antoine Latter [Sun, 22 Nov 2009 17:41:25 +0000 (17:41 +0000)] 
specify base version

9 years agofix 'many'
Antoine Latter [Sun, 22 Nov 2009 17:15:01 +0000 (17:15 +0000)] 
fix 'many'
Previously 'many' was not returning the last successful parse

10 years agomove core data type over to CPS
Antoine Latter [Mon, 2 Mar 2009 00:20:00 +0000 (00:20 +0000)] 
move core data type over to CPS

10 years agoDocumentation fix: typo in chainl1
Derek Elkins [Sat, 24 Oct 2009 18:38:37 +0000 (18:38 +0000)] 
Documentation fix: typo in chainl1

10 years agoBump version number and make compatible with base-4 and base-3.0.3+.
Derek Elkins [Wed, 9 Sep 2009 23:11:34 +0000 (23:11 +0000)] 
Bump version number and make compatible with base-4 and base-3.0.3+.

10 years agoMake parsec syb friendly.
kramer [Fri, 26 Dec 2008 08:29:54 +0000 (08:29 +0000)] 
Make parsec syb friendly.

10 years agoRemove strictness in the return value. This violates the monad laws. Add note about...
Derek Elkins [Sat, 14 Feb 2009 22:28:22 +0000 (22:28 +0000)] 
Remove strictness in the return value.  This violates the monad laws. Add note about user state strictness.

11 years agoAdd missing Postfix constructor in compatibility module.
Derek Elkins [Sat, 26 Jul 2008 19:54:35 +0000 (19:54 +0000)] 
Add missing Postfix constructor in compatibility module.

11 years agoUpdate the .cabal file for Cabal >= 1.2
Derek Elkins [Thu, 6 Mar 2008 05:02:48 +0000 (05:02 +0000)] 
Update the .cabal file for Cabal >= 1.2

11 years agoTouch up haddock formatting
Derek Elkins [Thu, 6 Mar 2008 01:25:31 +0000 (01:25 +0000)] 
Touch up haddock formatting

11 years agoVersion number bump
Derek Elkins [Thu, 6 Mar 2008 01:22:16 +0000 (01:22 +0000)] 
Version number bump

11 years agoMinor -Wall clean-up
Derek Elkins [Thu, 6 Mar 2008 01:20:54 +0000 (01:20 +0000)] 
Minor -Wall clean-up

11 years agoStream instances guidelines
Derek Elkins [Thu, 6 Mar 2008 01:17:54 +0000 (01:17 +0000)] 
Stream instances guidelines

11 years agocleanud up/expanded compatability modules.
aslatter [Sun, 17 Feb 2008 03:53:24 +0000 (03:53 +0000)] 
cleanud up/expanded compatability modules.

11 years agoClean most warnings
Derek Elkins [Wed, 13 Feb 2008 04:32:24 +0000 (04:32 +0000)] 
Clean most warnings

11 years agoA few mtl instances
aslatter [Tue, 5 Feb 2008 05:45:50 +0000 (05:45 +0000)] 
A few mtl instances

11 years agomissing case in parserPlus
aslatter [Sat, 2 Feb 2008 21:52:25 +0000 (21:52 +0000)] 
missing case in parserPlus

11 years agoadded a few language pragmas
aslatter [Sat, 2 Feb 2008 20:14:50 +0000 (20:14 +0000)] 
added a few language pragmas

GHCi 6.8.2 didn't seem to want to load the sources without these added pragmas

11 years agono longer using .Unsafe bytestring packages
aslatter [Sat, 2 Feb 2008 20:09:47 +0000 (20:09 +0000)] 
no longer using .Unsafe bytestring packages

11 years agoMaintainer email in ParserCombinators sub-directory
Derek Elkins [Sat, 2 Feb 2008 04:52:12 +0000 (04:52 +0000)] 
Maintainer email in ParserCombinators sub-directory

11 years agoTweaking Text.Parsec.Token's documentation
Derek Elkins [Tue, 22 Jan 2008 05:25:34 +0000 (05:25 +0000)] 
Tweaking Text.Parsec.Token's documentation

11 years agoHaddock documentation for Text.Parsec.Token
Derek Elkins [Tue, 22 Jan 2008 05:14:30 +0000 (05:14 +0000)] 
Haddock documentation for Text.Parsec.Token

11 years agoMinor whitespace change in Text.Parsec.Prim.hs
Derek Elkins [Tue, 22 Jan 2008 05:13:24 +0000 (05:13 +0000)] 
Minor whitespace change in Text.Parsec.Prim.hs

11 years agoHaddock documentation for Text.Parsec.Pos and removed forcePos.
Derek Elkins [Tue, 22 Jan 2008 04:16:19 +0000 (04:16 +0000)] 
Haddock documentation for Text.Parsec.Pos and removed forcePos.

11 years agoHaddock documentation for Text.Parsec.Language
Derek Elkins [Tue, 22 Jan 2008 04:06:32 +0000 (04:06 +0000)] 
Haddock documentation for Text.Parsec.Language

11 years agoHaddock documentation for Text.Parsec.Prim
Derek Elkins [Tue, 22 Jan 2008 01:37:52 +0000 (01:37 +0000)] 
Haddock documentation for Text.Parsec.Prim

11 years agoFix some references in the Text.Parsec.Error documentation
Derek Elkins [Tue, 22 Jan 2008 01:35:30 +0000 (01:35 +0000)] 
Fix some references in the Text.Parsec.Error documentation

11 years agoHaddock documentation for Text.Parsec.String, Text.Parsec.ByteString, Text.Parsec...
Derek Elkins [Sun, 20 Jan 2008 06:59:14 +0000 (06:59 +0000)] 
Haddock documentation for Text.Parsec.String, Text.Parsec.ByteString, Text.Parsec.ByteString.Lazy and updated maintainer email

11 years agoHaddock documentation for Text.Parsec.Expr and dropped unused t type variable.
Derek Elkins [Sun, 20 Jan 2008 06:43:50 +0000 (06:43 +0000)] 
Haddock documentation for Text.Parsec.Expr and dropped unused t type variable.

11 years agoMore accurate extension pragmas
Derek Elkins [Sun, 20 Jan 2008 06:39:18 +0000 (06:39 +0000)] 
More accurate extension pragmas

11 years agoHaddock documentation for Text.Parsec.Error
Derek Elkins [Sun, 20 Jan 2008 06:15:04 +0000 (06:15 +0000)] 
Haddock documentation for Text.Parsec.Error

11 years agoChanging maintainer email in parsec.cabal
Derek Elkins [Sun, 20 Jan 2008 04:45:58 +0000 (04:45 +0000)] 
Changing maintainer email in parsec.cabal

11 years agoChanging maintainer email
Derek Elkins [Sun, 20 Jan 2008 04:44:41 +0000 (04:44 +0000)] 
Changing maintainer email

11 years agoHaddock documentation for Text.Parsec.Perm
Derek Elkins [Sun, 20 Jan 2008 04:39:29 +0000 (04:39 +0000)] 
Haddock documentation for Text.Parsec.Perm

11 years agoHaddock documentation for Text.Parsec.Combinator
Derek Elkins [Sun, 20 Jan 2008 04:38:22 +0000 (04:38 +0000)] 
Haddock documentation for Text.Parsec.Combinator

11 years agoHaddock documentation for Text.Parsec.Char
Derek Elkins [Sun, 20 Jan 2008 04:36:10 +0000 (04:36 +0000)] 
Haddock documentation for Text.Parsec.Char

11 years agoRemove redundant comments
Derek Elkins [Sat, 19 Jan 2008 22:12:20 +0000 (22:12 +0000)] 
Remove redundant comments

11 years agoSmall typo in parsec.cabal
Derek Elkins [Sat, 19 Jan 2008 22:08:26 +0000 (22:08 +0000)] 
Small typo in parsec.cabal

11 years agoFixed small but critical bug in manyAccum
Derek Elkins [Sat, 19 Jan 2008 22:07:50 +0000 (22:07 +0000)] 
Fixed small but critical bug in manyAccum

11 years agoAdded Control.Applicative.Alternative instance
Derek Elkins [Sat, 19 Jan 2008 22:06:33 +0000 (22:06 +0000)] 
Added Control.Applicative.Alternative instance

11 years agoAdded Control.Applicative instances
Derek Elkins [Sun, 13 Jan 2008 23:54:41 +0000 (23:54 +0000)] 
Added Control.Applicative instances

11 years agoMoved Parsec.ByteString.Lazy to the correct directory
Derek Elkins [Sun, 13 Jan 2008 23:53:50 +0000 (23:53 +0000)] 
Moved Parsec.ByteString.Lazy to the correct directory

11 years agoMove Parsec.LazyByteString to Parsec.ByteString.Lazy
Derek Elkins [Sun, 13 Jan 2008 23:06:02 +0000 (23:06 +0000)] 
Move Parsec.LazyByteString to Parsec.ByteString.Lazy

11 years agoMade cabal buildable
Derek Elkins [Sun, 13 Jan 2008 18:00:19 +0000 (18:00 +0000)] 
Made cabal buildable

11 years agoInitial import
Derek Elkins [Sun, 13 Jan 2008 17:53:15 +0000 (17:53 +0000)] 
Initial import