packages/parsec.git
4 years agoRemove optimization level from package description
Antoine Latter [Sun, 22 Mar 2015 03:31:16 +0000 (22:31 -0500)] 
Remove optimization level from package description

4 years agoSwitch to multi-ghc style travis script
Antoine Latter [Sun, 22 Mar 2015 02:22:24 +0000 (21:22 -0500)] 
Switch to multi-ghc style travis script

4 years agoSmall cleanup in package description.
Antoine Latter [Sun, 22 Mar 2015 01:42:33 +0000 (20:42 -0500)] 
Small cleanup in package description.

4 years agoRemove split-base conditional compilation option.
Antoine Latter [Sun, 22 Mar 2015 01:40:02 +0000 (20:40 -0500)] 
Remove split-base conditional compilation option.

4 years agoMerge pull request #30 from aslatter/aslatter-test-multi-version
Antoine Latter [Thu, 19 Mar 2015 20:13:21 +0000 (16:13 -0400)] 
Merge pull request #30 from aslatter/aslatter-test-multi-version

Test against multiple GHC versions in Travis CI.

4 years agoTest against multiple GHC versions in Travis CI.
Antoine Latter [Thu, 19 Mar 2015 20:06:57 +0000 (16:06 -0400)] 
Test against multiple GHC versions in Travis CI.

4 years agoMerge pull request #29 from aslatter/aslatter-release-prep
Antoine Latter [Thu, 19 Mar 2015 15:12:15 +0000 (11:12 -0400)] 
Merge pull request #29 from aslatter/aslatter-release-prep

Prep for 3.1.9

4 years agoUpdate changelog.
Antoine Latter [Thu, 19 Mar 2015 15:01:44 +0000 (11:01 -0400)] 
Update changelog.

4 years agoBump package version.
Antoine Latter [Thu, 19 Mar 2015 14:58:05 +0000 (10:58 -0400)] 
Bump package version.

4 years agoMerge pull request #28 from aslatter/aslatter-fix-27
Antoine Latter [Thu, 19 Mar 2015 14:53:24 +0000 (10:53 -0400)] 
Merge pull request #28 from aslatter/aslatter-fix-27

Merge fix for #27 and add basic Travis-CI support

4 years agoTravis-CI: We don't need 'sudo' access
Antoine Latter [Thu, 19 Mar 2015 14:50:38 +0000 (10:50 -0400)] 
Travis-CI: We don't need 'sudo' access

4 years agoAdd TODO comment to travis CI confgi
Antoine Latter [Thu, 19 Mar 2015 14:38:42 +0000 (10:38 -0400)] 
Add TODO comment to travis CI confgi

4 years agoCreate travis-CI config file
Antoine Latter [Thu, 19 Mar 2015 14:33:17 +0000 (10:33 -0400)] 
Create travis-CI config file

This is pretty bare-bones, but hopefully enough to get started.

4 years agoExport 'runP' from Text.Parsec
Antoine Latter [Thu, 19 Mar 2015 14:30:21 +0000 (10:30 -0400)] 
Export 'runP' from Text.Parsec

Fixes #27.

4 years agoMerge pull request #26 from joelwilliamson/patch-1
Antoine Latter [Sat, 7 Mar 2015 20:54:22 +0000 (14:54 -0600)] 
Merge pull request #26 from joelwilliamson/patch-1

Fixed type of argument to char in examples

4 years agoFixed type of argument to char in examples
Joel Williamson [Sat, 7 Mar 2015 18:16:49 +0000 (13:16 -0500)] 
Fixed type of argument to char in examples

The examples for identStart and identLetter were calling `char "_"`. char should take a character literal, not a string.

4 years agoMerge pull request #23 from talw/master
Antoine Latter [Sat, 24 Jan 2015 14:03:25 +0000 (08:03 -0600)] 
Merge pull request #23 from talw/master

Fixed a mistake (Applicative to Alternative) in the parserZero comments

4 years agoFixed a mistake (Applicative to Alternative) in the parserZero comments
Tal Walter [Sat, 24 Jan 2015 06:59:22 +0000 (08:59 +0200)] 
Fixed a mistake (Applicative to Alternative) in the parserZero comments

4 years agoMerge pull request #20 from cdepillabout/patch-1
Antoine Latter [Sat, 10 Jan 2015 16:52:59 +0000 (10:52 -0600)] 
Merge pull request #20 from cdepillabout/patch-1

Fixing spelling mistake in doc for chain function

4 years agoFixing spelling mistake in doc for chain function
cdepillabout [Sat, 10 Jan 2015 16:32:00 +0000 (01:32 +0900)] 
Fixing spelling mistake in doc for chain function

Fix a small spelling mistake in the haskell doc for chainr1, chainl1, chainr, and chainl.

4 years agoMerge branch '3.1.7_maint'
Antoine Latter [Sat, 10 Jan 2015 02:45:16 +0000 (20:45 -0600)] 
Merge branch '3.1.7_maint'

4 years agoMerge branch 'master' into 3.1.7_maint
Antoine Latter [Sat, 10 Jan 2015 02:44:02 +0000 (20:44 -0600)] 
Merge branch 'master' into 3.1.7_maint

Conflicts:
parsec.cabal

4 years agoUpdate version and changelog for 3.1.8 release.
Antoine Latter [Sat, 10 Jan 2015 02:36:09 +0000 (20:36 -0600)] 
Update version and changelog for 3.1.8 release.

4 years agoFix module exports for Stream, Consumed, Reply, and State.
Antoine Latter [Sat, 10 Jan 2015 02:33:05 +0000 (20:33 -0600)] 
Fix module exports for Stream, Consumed, Reply, and State.

4 years agoMerge pull request #14 from jcpetruzza/Eq-ParseError
Antoine Latter [Sat, 13 Dec 2014 20:44:02 +0000 (14:44 -0600)] 
Merge pull request #14 from jcpetruzza/Eq-ParseError

Add an Eq instance for ParseError

4 years agoAdd an Eq instance for ParseError
Daniel Gorin [Mon, 3 Nov 2014 16:30:21 +0000 (16:30 +0000)] 
Add an Eq instance for ParseError

4 years agoMerge pull request #13 from slava-sh/master
Antoine Latter [Wed, 29 Oct 2014 18:26:31 +0000 (13:26 -0500)] 
Merge pull request #13 from slava-sh/master

Fix a typo

4 years agoFix a typo
Slava Shklyaev [Wed, 29 Oct 2014 17:31:48 +0000 (19:31 +0200)] 
Fix a typo

4 years agoMerge pull request #12 from esg/master
Antoine Latter [Wed, 29 Oct 2014 17:13:35 +0000 (12:13 -0500)] 
Merge pull request #12 from esg/master

Spelling fix. ('seperate' -> 'separate').

4 years agoSpelling fix. ('seperate' -> 'separate').
Emil Skoeldberg [Wed, 29 Oct 2014 11:21:46 +0000 (11:21 +0000)] 
Spelling fix. ('seperate' -> 'separate').

4 years agoMerge pull request #11 from cies/master
Antoine Latter [Fri, 17 Oct 2014 19:59:10 +0000 (14:59 -0500)] 
Merge pull request #11 from cies/master

Created a README and have the homepage point to that.

4 years agoChanged the homepage to the Github page.
Cies Breijs [Thu, 16 Oct 2014 16:22:38 +0000 (18:22 +0200)] 
Changed the homepage to the Github page.

And some small textual changes.

4 years agoChanged prologue into a README in markdown format.
Cies Breijs [Thu, 16 Oct 2014 16:21:52 +0000 (18:21 +0200)] 
Changed prologue into a README in markdown format.

4 years agoUpdate changelog.
Antoine Latter [Thu, 25 Sep 2014 01:49:46 +0000 (20:49 -0500)] 
Update changelog.

4 years agoTests are now -Wall clean.
Antoine Latter [Thu, 25 Sep 2014 01:47:18 +0000 (20:47 -0500)] 
Tests are now -Wall clean.

4 years agolookAhead: reset error messages on success
Marios Titas [Wed, 10 Sep 2014 13:23:34 +0000 (14:23 +0100)] 
lookAhead: reset error messages on success

4 years agoAdd test for #6.
Antoine Latter [Thu, 25 Sep 2014 01:10:39 +0000 (20:10 -0500)] 
Add test for #6.

4 years agoRevert "Track current position in the 'tokens' function"
Antoine Latter [Thu, 25 Sep 2014 00:43:08 +0000 (19:43 -0500)] 
Revert "Track current position in the 'tokens' function"

This reverts commit 860764939c98a36510cc4f42328b5dd30152043b.

This fixes #9.

4 years agoPost-release version bump
Antoine Latter [Thu, 25 Sep 2014 00:28:13 +0000 (19:28 -0500)] 
Post-release version bump

4 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.

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

4 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.

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

4 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

4 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

4 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

5 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

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

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

7 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.

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

8 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

8 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

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

9 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