mrkkrp
80e93b90a6
fixing things in ‘Text.Megaparsec.Error’
2015-08-08 15:48:20 +06:00
mrkkrp
3daa70f15a
representation of tokens in error messages, fixed #12
...
* Type class ‘ShowToken’ introduced to pretty-print tokens.
* For now, we have defined instances for ‘String’ and ‘Char’.
2015-08-06 16:37:08 +06:00
mrkkrp
0608926db2
extends description of ‘Text.Megaparsec’ module
2015-08-04 00:15:16 +06:00
mrkkrp
cbbf27ddd0
export only useful (for user) functions
...
User still can import ‘Text.Megaparsec.Prim’ to access the stuff, but
it's very unlikely that this sort of things is used often.
2015-08-04 00:02:23 +06:00
mrkkrp
02e5f148e9
updated doc for ‘Text.Megaparsec.Prim.runParsecT’
2015-08-04 00:01:38 +06:00
mrkkrp
be36490aa2
corrections for ‘Text.Megaparsec.Error’
2015-08-03 23:44:40 +06:00
mrkkrp
eb8fdcce2f
tests for ‘Text.Megaparsec.Error’
2015-08-03 23:44:11 +06:00
mrkkrp
79a378c9c4
remove parenthesis around “line & column” block
2015-08-03 20:45:09 +06:00
mrkkrp
274eca9706
renamed ‘oldtests’ → ‘old-tests’ for readability
2015-08-03 13:23:52 +06:00
mrkkrp
19b8aaba16
added ‘megaparsec.ebal’ file
2015-08-03 13:20:48 +06:00
mrkkrp
437608c2c7
minor corrections in module ‘Text.Megaparsec.Pos’
2015-08-03 13:20:15 +06:00
mrkkrp
866bcdec58
some tests written
2015-08-03 13:19:23 +06:00
mrkkrp
77db6414c6
integration with Coveralls
2015-08-03 12:46:53 +06:00
mrkkrp
3ef5e5e621
renamed ‘MegaParsec’ → ‘Megaparsec’, close #10
2015-08-01 22:24:45 +06:00
mrkkrp
3c69bc8f48
re-export ‘(<|>)’, ‘many’, ‘some’, and ‘optional’, fixes #9
...
These functions are now re-exported from ‘Control.Applicative’
module. ‘many’ and ‘some’ are now part of ‘Alternative’ instance of
‘ParsecT’.
Note that these functions are re-exported only in ‘Text.MegaParsec’
module, but not in ‘Text.MegaParsec.Prim’ to avoid duplication of
floating doc-strings. Others internal modules now just casually import
‘Control.Applicative’ for their needs.
Note that ‘many1’ was renamed to ‘some’, the same is done for other
parsers that had ‘many1’ part in their names (for consistency).
2015-08-01 20:49:45 +06:00
mrkkrp
c340479623
extend list of contributors
2015-08-01 14:41:21 +06:00
Mark Karpov
d79dc45039
Merge pull request #8 from albertnetymk/remove-try-float
...
Remove `try` in float parser.
2015-08-01 13:41:47 +05:00
Albert Netymk
189106f001
Remove try
in float parser.
...
According to this post
(http://blog.ezyang.com/2014/05/parsec-try-a-or-b-considered-harmful/ ),
the error message could be confusing if using `try`. `"3.a"` is one case
to expose this behavior.
2015-07-31 23:45:42 +02:00
mrkkrp
1ce541aaba
remove word ‘unsigned’ from descriptions
2015-08-01 01:31:31 +06:00
mrkkrp
7c0341af72
the grammars overlap so there should be a ‘try’
2015-07-31 20:31:38 +06:00
mrkkrp
181bad13ec
updated changelog
2015-07-31 20:13:38 +06:00
mrkkrp
e46ba8db05
added benchmarks (empty for now)
2015-07-31 20:12:56 +06:00
mrkkrp
5459bf05e0
specified versions of ‘base’ for tests
2015-07-31 20:06:07 +06:00
mrkkrp
ec57da40b0
reorganized tests
2015-07-31 18:59:26 +06:00
mrkkrp
f346063cc1
reordered copyright notices
2015-07-31 17:44:27 +06:00
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