Fraser Tweedale
a141d92f9f
ci: add lts-10 to build matrix
2017-12-31 17:10:34 +10:00
Fraser Tweedale
8e01f2f06a
indicate tested-with versions
2017-09-25 14:04:52 +10:00
Fraser Tweedale
a8c5beb521
do not build with -O2
2017-09-25 14:02:53 +10:00
Fraser Tweedale
c055105ee9
ci: add lts-9 to build matrix
2017-09-23 14:05:46 +10:00
Fraser Tweedale
450bbfb247
ci: add lts-8 to build matrix
2017-02-14 21:37:15 +10:00
Fraser Tweedale
dee272b65d
ci: add lts-7
2016-12-29 15:05:33 +10:00
Fraser Tweedale
9f6d2a9498
add 'many' benchmark
2016-07-04 22:13:55 +10:00
Fraser Tweedale
01c9c9b92c
build with -O2
2016-07-04 22:12:18 +10:00
Fraser Tweedale
91bc4cc1d3
add 'eof' idempotency test case
2016-06-21 20:34:09 +10:00
Fraser Tweedale
4503692cd9
add function to turn a Grammar into a Prism
2016-06-21 20:33:39 +10:00
Fraser Tweedale
8725db4b9b
add sepBy and sepBy1 combinators
2016-06-19 17:14:09 +10:00
Fraser Tweedale
13cb6057fe
export _NonEmpty prism
2016-06-19 17:13:57 +10:00
Fraser Tweedale
268b8743ca
re-export TH from main module
2016-06-19 17:13:33 +10:00
Fraser Tweedale
85224fc6d9
ci: test on lts-3..6 and nightly
...
Stackage lts-2 uses GHC 7.8, which would have been desirable to test
with, but it includes doctest 0.9, which does not support directory
expansion. I couldn't be bothered writing that, so 7.8 is
unsupported until someone asks for it.
2016-06-18 12:33:20 +10:00
Fraser Tweedale
45f3e54212
remove redundant imports
2016-06-18 12:17:53 +10:00
Fraser Tweedale
ca0fed3f47
remove redundant dependencies
2016-06-18 12:17:29 +10:00
Fraser Tweedale
af42a87266
fix TH for GHC 8
2016-06-18 12:16:49 +10:00
Fraser Tweedale
77c801e26f
simplify implementation of satisfy and add tests
2016-05-08 15:10:36 +10:00
Fraser Tweedale
cb02143f1c
add nullary constructor test case
2016-04-09 12:32:16 +10:00
Fraser Tweedale
d9d925425e
make (<<+>>) right associative again
...
Changing (<<+>>) to left-associativity made the existing TH
incorrect. But the associativity change for sum grammars doesn't
improve the API, so switch back to right-associativity.
2016-04-09 11:53:27 +10:00
Fraser Tweedale
061c77bd43
TH: make tuples left-leaning
...
(<<*>>) was made left-associative in a recent commit, but TH was not
updated to make left-leaning tuples. Update the TH code and add
some more test cases.
2016-04-09 11:35:26 +10:00
Fraser Tweedale
7f3147df4e
readme: preview <-> review
2016-04-04 23:45:10 +10:00
Fraser Tweedale
e0cc41cd1a
readme: avoid GitHub ReStructureText glitches
2016-04-04 23:41:56 +10:00
Fraser Tweedale
f5b8a5f204
readme: use rst code role
2016-04-04 23:36:27 +10:00
Fraser Tweedale
0dcd04c1b0
readme: add phone number example
2016-04-04 23:33:02 +10:00
Fraser Tweedale
a26403a941
tweak fixity of product and sum combinators
2016-04-04 23:32:12 +10:00
Fraser Tweedale
33211f8d98
readme: document literal, match and TH
2016-04-04 21:52:42 +10:00
Fraser Tweedale
32ef651532
add match :: Grammar s a -> a -> Grammar s ()
2016-04-04 21:19:35 +10:00
Fraser Tweedale
fbd708de38
remove redundant parens
2016-04-03 09:55:01 +10:00
Fraser Tweedale
48c65c6968
add test for multi-arg records / nested tuples
2016-04-03 09:11:26 +10:00
Fraser Tweedale
ea3cc2010e
add 'digit' grammar
2016-04-03 09:10:50 +10:00
Fraser Tweedale
5a22d863b8
add doctest test suite
2016-04-03 08:56:18 +10:00
Fraser Tweedale
7ef30a4caf
integral: chase API change and rename
2016-04-02 14:18:12 +10:00
Fraser Tweedale
7278460ddc
readme: chase function name changes
2016-04-02 14:07:02 +10:00
Fraser Tweedale
3baaa24457
remove unused method aliases; rename bindG -> bind
2016-04-02 14:01:55 +10:00
Fraser Tweedale
8bcf126d16
simplify implementation of bind
2016-04-02 13:24:26 +10:00
Fraser Tweedale
c55e9c6958
simplify implementation of satisfy
2016-04-02 13:22:10 +10:00
Fraser Tweedale
7c9e17cef2
simplify implementation of eof
2016-04-02 12:14:32 +10:00
Fraser Tweedale
bbc3c5ab1d
add negative test for (<<+>>)
2016-03-27 17:15:56 +10:00
Fraser Tweedale
ac5dc18be0
simplify implementation of literal
2016-03-27 17:10:44 +10:00
Fraser Tweedale
cdf3be57da
simplify implementation of def and opt
2016-03-27 17:07:06 +10:00
Fraser Tweedale
281607fe55
simplify implementation of replicate
2016-03-27 16:58:50 +10:00
Fraser Tweedale
0566bcffe6
simplify implementation of many
2016-03-27 16:33:15 +10:00
Fraser Tweedale
c9a14f297b
even simpler implementation of (<<*>>)
2016-03-26 10:45:24 +10:00
Fraser Tweedale
81100a300a
simplify implementation of (<<*) and (*>>)
2016-03-26 02:00:21 +10:00
Fraser Tweedale
727bf7101f
simplify implementation of (<<*>>)
2016-03-26 01:52:55 +10:00
Fraser Tweedale
b3a7e4cfa3
even simpler implementation of (<<$>>)
2016-03-26 00:57:17 +10:00
Fraser Tweedale
11ccba96ee
simplify implementation of (<<+>>)
2016-03-26 00:50:26 +10:00
Fraser Tweedale
4e543db9db
simplify implementation of (<<$>>)
2016-03-26 00:16:24 +10:00
Fraser Tweedale
afaee48f53
readme: clarify type of (<<$>>)
2016-03-12 22:09:09 +10:00