mrkkrp
e8174d4700
Add some ‘Arbitrary’ instances
2016-09-04 16:44:24 +03:00
mrkkrp
5478537cf7
Eliminate the ‘old-tests’ test suite
2016-09-04 16:33:40 +03:00
mrkkrp
badec4a9df
Expose the ‘parseErrorTextPretty’ function
...
Close #137 .
2016-09-04 14:48:40 +03:00
Albert Krewinkel
c234586435
Reflect renaming of alphaNum in docs ( #136 )
...
The `alphaNum` parser was renamed to `alphaNumChar`, yet the docs
weren't full updated to reflect this change.
2016-08-27 16:44:55 +04:00
mrkkrp
82994e45d4
Allow line comments end with end of input
...
Close #119 .
2016-08-13 20:00:49 +03:00
mrkkrp
ee5f126c14
Use LTS 6.11 resolver
2016-08-13 19:46:20 +03:00
mrkkrp
c4e1259cb9
Add a couple of articles into the docs
2016-08-13 19:22:33 +03:00
mrkkrp
6a7c41d889
Don't allow very big values of ‘Pos’ in tests
...
This is unrealistic and leads to false failures.
2016-08-04 09:38:54 +03:00
mrkkrp
38dd2112e3
Mention how to deal with case described in #129
...
Close #130 .
2016-08-01 22:00:36 +03:00
mrkkrp
33098be1ea
Define ‘displayException’ for ‘ParseError’
2016-07-29 21:27:52 +03:00
mrkkrp
7beca0c585
Fix the build with ‘QuickCheck-2.9’ and later
2016-07-24 13:06:52 +03:00
mrkkrp
7616d79f1d
A cosmetic improvement in Cabal file
2016-07-24 11:06:24 +03:00
Mark Karpov
af2a967230
Merge pull request #128 from kseo/related-projects
...
Add tagsoup-megaparsec to the related packages
2016-07-12 23:21:18 +04:00
Kwang Yul Seo
9401cf56b9
Add tagsoup-megaparsec to the related packages
2016-07-13 01:21:12 +09:00
mrkkrp
30c302cf11
Version bump (5.0.1)
2016-07-11 21:36:33 +03:00
mrkkrp
033cbeb3fa
Update the ‘CHANGELOG.md’ file
2016-07-11 21:36:14 +03:00
mrkkrp
2a98741aba
Inline ‘initialPos’
2016-07-11 21:35:57 +03:00
mrkkrp
efe14cfa5f
Derive ‘Data’, ‘Typeable’, ‘NFData’, for ‘State’
2016-07-11 21:35:24 +03:00
mrkkrp
e24a78093f
Derive ‘NFData’ for all data types in the library
...
Close #124 .
2016-07-11 17:03:30 +03:00
mrkkrp
11d10c7d85
Mention performance improvements in ‘CHANGELOG.md’
2016-07-11 10:52:44 +03:00
Devon Hollowood
a803e3c68c
Clarify error message for many
parser
...
Close #122 .
2016-07-09 13:25:59 +04:00
Mark Karpov
c7c61dfab8
Merge pull request #114 from mccain/grammar-mistake-lexer
...
Add missing "to" to documentation
2016-06-24 17:02:17 +04:00
Daniel S. McCain
62ee63918c
Add missing "to" to documentation
2016-06-24 14:00:26 +02:00
mrkkrp
7d47a7b8f9
Derive more ‘Data’ and ‘Typeable’ instances
...
Close #112 . Derive ‘Data’ instance for ‘ParseError’, ‘Data’ and
‘Typeable’ instances for ‘SourcePos’.
2016-06-23 22:52:29 +03:00
mrkkrp
7dc397d806
Update upper bounds, use ‘lts-6.2’ resolver
2016-06-10 16:16:48 +07:00
mrkkrp
b7cc20ec67
Drop GHC 7.10.1 and 7.10.2 from Travis CI
...
Just GHC 7.10.3 should be enough to test for this version.
2016-05-24 16:29:25 +07:00
mrkkrp
d5b8d7755c
Rename section to make local hyperlink work
2016-05-15 00:08:18 +07:00
mrkkrp
2062354709
Various corrections in ‘README.md’ and docs
2016-05-14 16:59:18 +07:00
mrkkrp
3f445fc8fc
Version bump (5.0.0)
2016-05-14 15:43:44 +07:00
mrkkrp
2df1953075
Highlight new features in the ‘README.md’ file
2016-05-12 11:06:03 +07:00
Mark Karpov
b2a3329723
Merge pull request #105 from mrkkrp/line-folds
...
Line folding
2016-05-11 14:24:32 +07:00
mrkkrp
46132a8048
Update the ‘CHANGELOG.md’ file (line folds)
2016-05-11 00:25:24 +07:00
mrkkrp
e39fd663ca
Minor corrections and add test for ‘lineFold’
2016-05-10 22:51:40 +07:00
mrkkrp
a74bcd1499
Add ‘checkCase’ (rename old one to ‘checkCase'’)
2016-05-10 22:51:23 +07:00
mrkkrp
2a07087766
Initial implementation of line folding
...
Close #87 .
2016-05-10 22:50:22 +07:00
mrkkrp
34f1f95294
Fix a typo ‘ManyIndent’ → ‘IndentMany’
2016-05-04 16:42:10 +07:00
mrkkrp
3af8d25407
Improve handling of custom streams
...
This improves position reporting/advancing for ‘eof’, ‘token’, and
‘tokens’ combinators. Previously it was slightly incorrect for streams
consisting of custom token as new tests demonstrated.
2016-05-04 01:24:02 +07:00
mrkkrp
dc63a8f893
Add tests to cover new API for position advancing
...
Close #102 .
2016-05-04 00:53:09 +07:00
mrkkrp
59c01cba67
Improve some existing tests to increase coverage
2016-05-02 21:51:06 +07:00
mrkkrp
ae9ed355aa
Inline functions in ‘Text.Megaparsec.Char’
...
This gives a nice speed up — not too surprising given size of the
functions, although it would be nice if GHC could figure this out by
itself too…
2016-05-02 01:00:59 +07:00
mrkkrp
f4f66222ec
Improve performance of ‘(<*>)’
...
This handwritten version has proved to be more efficient from benchmarks
and profiling.
2016-05-02 00:59:58 +07:00
mrkkrp
df3b3016d5
Make ‘pToken’ lazier (position updating)
...
Evaluation of ‘npos’ is not necessary when we are going to report an
error. Similarly, evaluation of current position is not necessary when
we just need to get incremented position. This seemingly minor change
has profound impact on performance because call to ‘token’ function is
at the base of significant part of parsing process.
2016-05-02 00:53:42 +07:00
mrkkrp
2385cf5867
Add a test for ‘parseMaybe’
2016-04-30 19:02:26 +07:00
mrkkrp
49303f18c4
Add a trivial test for ‘MonadIO’ instance
2016-04-30 18:32:50 +07:00
mrkkrp
2eddd78f0f
Tests for ‘updatePos’ (different types of streams)
2016-04-30 18:22:00 +07:00
mrkkrp
3195a97776
Add new tests for ‘showTokens’ and pretty-printing
2016-04-30 17:31:52 +07:00
mrkkrp
9040284333
Use ‘lts-5.14’ and ‘QuickCheck-2.8.2’
2016-04-29 15:04:26 +07:00
mrkkrp
f651d59ea6
Require at least ‘QuickCheck-2.8.2’ for test suite
...
Because of ‘Arbitrary’ instances for things from ‘contianers’
package (namely ‘Set’).
2016-04-29 14:58:27 +07:00
Mark Karpov
2cad25dd11
Merge pull request #99 from mrkkrp/pos-and-error-reform
...
Position and error reform
2016-04-28 00:10:03 +07:00
mrkkrp
9240896e6b
Update the ‘CHANGELOG.md’ file
2016-04-28 00:07:15 +07:00