Commit Graph

456 Commits

Author SHA1 Message Date
mrkkrp
c5bcdfb220 rewritten parsing of numbers, fixes #2 and #3
Changed how numbers are parsed because they were parsed in a naïf and
hairy way. Added tests for #2 and #3 (in old Parsec project these are
number 35 and 39 respectively).

* Since Haskell report doesn't say anything about sign, I've made
  ‘integer’ and ‘float’ parse numbers without sign.

* Removed ‘natural’ parser, it's equal to new ‘integer’ now.

* Renamed ‘naturalOrFloat’ → ‘number’ — this doesn't parse sign too.

* Added new combinator ‘signed’ to parse all sorts of signed numbers.

* For the sake of convenience I've added ‘integer'’, ‘float'’, and
 ‘number'’ combinators that also can parse signed numbers out of box.
2015-07-31 17:30:38 +06:00
mrkkrp
b19dae4315 improve efficiency of applicative interface 2015-07-31 01:50:36 +06:00
mrkkrp
0123e43eb5 a minor correction in ‘README.md’ 2015-07-31 01:13:22 +06:00
mrkkrp
59a0447f78 make travis test haddock docs 2015-07-31 00:38:47 +06:00
mrkkrp
b936e3c3a9 improved documentation, fixes #1 2015-07-31 00:36:54 +06:00
mrkkrp
773e9ccabe cosmetic changes in copyright (headers) 2015-07-30 22:20:37 +06:00
mrkkrp
8fff49b19d mentioned compatibility and ‘base’ 2015-07-30 22:04:33 +06:00
mrkkrp
c4dc799cfe added retired maintainers to ‘AUTHORS.md’ 2015-07-30 21:45:54 +06:00
mrkkrp
e6f2379b22 refactoring, phase 3 2015-07-30 21:45:06 +06:00
mrkkrp
137ce0a521 refactoring, phase 2 2015-07-29 14:44:58 +06:00
mrkkrp
227667f829 refactoring, phase 1 2015-07-28 19:32:19 +06:00
mrkkrp
8649d131bc minor change 2015-07-27 18:31:18 +06:00
mrkkrp
bb739653c1 extend list of contributors
The list is based on GitHub statistic for original Parsec repository.
2015-07-27 15:17:49 +06:00
mrkkrp
e9df080033 add build status badge 2015-07-27 15:12:29 +06:00
mrkkrp
d020e8e1f6 preparatory changes 2015-07-27 15:03:58 +06:00
Antoine Latter
e3165600f6 Merge pull request #36 from benpence/master
Fixes minor documentation inconsistency
2015-05-17 20:31:39 -05:00
Ben Pence
dd14602877 Fixes minor documentation inconsistency 2015-05-17 11:18:05 -07:00
Antoine Latter
6fabd834ef Merge pull request #34 from simonvandel/patch-1
Fix documentation for emptyDef not rendering
2015-04-15 12:43:42 -05:00
Simon Vandel Sillesen
4aeaede85d Fix documentation for emptyDef not rendering 2015-04-15 19:01:53 +02:00
Antoine Latter
bcafc678df Merge pull request #31 from aslatter/aslatter-travis-hvrconf
Switch to multi-ghc style travis script
2015-03-28 08:49:02 -05:00
Antoine Latter
58b5c6b308 Remove optimization level from package description 2015-03-21 22:31:16 -05:00
Antoine Latter
e1f87ddcc5 Switch to multi-ghc style travis script 2015-03-21 21:22:24 -05:00
Antoine Latter
d86de04fcb Small cleanup in package description. 2015-03-21 20:42:33 -05:00
Antoine Latter
19a62ae80a Remove split-base conditional compilation option. 2015-03-21 20:40:02 -05:00
Antoine Latter
28fe39140f Merge pull request #30 from aslatter/aslatter-test-multi-version
Test against multiple GHC versions in Travis CI.
2015-03-19 16:13:21 -04:00
Antoine Latter
048bd618ed Test against multiple GHC versions in Travis CI. 2015-03-19 16:06:57 -04:00
Antoine Latter
27f03988ca Merge pull request #29 from aslatter/aslatter-release-prep
Prep for 3.1.9
2015-03-19 11:12:15 -04:00
Antoine Latter
1318d244af Update changelog. 2015-03-19 11:01:44 -04:00
Antoine Latter
d64133e1d9 Bump package version. 2015-03-19 10:58:05 -04:00
Antoine Latter
70eaf309ce Merge pull request #28 from aslatter/aslatter-fix-27
Merge fix for #27 and add basic Travis-CI support
2015-03-19 10:53:24 -04:00
Antoine Latter
6374db5979 Travis-CI: We don't need 'sudo' access 2015-03-19 10:50:38 -04:00
Antoine Latter
024a207ea7 Add TODO comment to travis CI confgi 2015-03-19 10:38:42 -04:00
Antoine Latter
64b3f1369a Create travis-CI config file
This is pretty bare-bones, but hopefully enough to get started.
2015-03-19 10:33:17 -04:00
Antoine Latter
03242e474c Export 'runP' from Text.Parsec
Fixes #27.
2015-03-19 10:30:21 -04:00
Antoine Latter
fbf9840faf Merge pull request #26 from joelwilliamson/patch-1
Fixed type of argument to char in examples
2015-03-07 14:54:22 -06:00
Joel Williamson
6382eeec38 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.
2015-03-07 13:16:49 -05:00
Antoine Latter
b5a5c73afb Merge pull request #23 from talw/master
Fixed a mistake (Applicative to Alternative) in the parserZero comments
2015-01-24 08:03:25 -06:00
Tal Walter
2b74642d7d Fixed a mistake (Applicative to Alternative) in the parserZero comments 2015-01-24 09:07:01 +02:00
Antoine Latter
87f0293627 Merge pull request #20 from cdepillabout/patch-1
Fixing spelling mistake in doc for chain function
2015-01-10 10:52:59 -06:00
cdepillabout
640cbdd306 Fixing spelling mistake in doc for chain function
Fix a small spelling mistake in the haskell doc for chainr1, chainl1, chainr, and chainl.
2015-01-11 01:32:00 +09:00
Antoine Latter
fad9ea6ffd Merge branch '3.1.7_maint' 2015-01-09 20:45:16 -06:00
Antoine Latter
37d34b23eb Merge branch 'master' into 3.1.7_maint
Conflicts:
	parsec.cabal
2015-01-09 20:44:02 -06:00
Antoine Latter
e6133b8759 Update version and changelog for 3.1.8 release. 2015-01-09 20:36:09 -06:00
Antoine Latter
355d8f2fc6 Fix module exports for Stream, Consumed, Reply, and State. 2015-01-09 20:33:05 -06:00
Antoine Latter
0afc1273c6 Merge pull request #14 from jcpetruzza/Eq-ParseError
Add an Eq instance for ParseError
2014-12-13 14:44:02 -06:00
Daniel Gorin
3fb40aaa68 Add an Eq instance for ParseError 2014-11-03 16:30:21 +00:00
Antoine Latter
e44e3ceee8 Merge pull request #13 from slava-sh/master
Fix a typo
2014-10-29 13:26:31 -05:00
Slava Shklyaev
22ee53e06d Fix a typo 2014-10-29 19:36:12 +02:00
Antoine Latter
80627973b2 Merge pull request #12 from esg/master
Spelling fix. ('seperate' -> 'separate').
2014-10-29 12:13:35 -05:00
Emil Skoeldberg
ed944b4a96 Spelling fix. ('seperate' -> 'separate'). 2014-10-29 11:21:46 +00:00