Commit Graph

901 Commits

Author SHA1 Message Date
Mark Karpov
7a4e3b3af4
Adjust the docs of indentBlock
It appears that the old wording is excessively strict for no good reason.
2022-10-21 20:43:03 +02:00
Mark Karpov
889c9f3446
Fix a typo 2022-10-21 20:26:14 +02:00
Mark Karpov
259e3a91a7
Use Cabal 3.8 on CI 2022-10-03 11:06:29 +02:00
Mark Karpov
ed19ea7bd3
Version bump (9.2.2) 2022-09-01 14:27:54 +02:00
Tom Ellis
a0efaab6eb Make St SourcePos strict and UNPACKed
Fixes https://github.com/mrkkrp/megaparsec/issues/486
2022-09-01 14:26:18 +02:00
Mark Karpov
cd6302d9b9 Request minimal base 4.15
This corresponds to support for the latest 3 GHC versions.
2022-08-18 13:49:50 +02:00
Mark Karpov
fc5d860d68 Test with GHC 9.2.4 and GHC 9.4.1 + misc updates 2022-08-18 11:42:58 +02:00
Mark Karpov
38b15fe6dc Allow criterion-1.6 2022-08-16 10:15:36 +02:00
Mark Karpov
2a46074430 Numeric parsers: warn about absence of range checks 2022-05-29 17:45:04 +02:00
Mark Karpov
7d6b82642d Use Ormolu action v6 (Ormolu 0.5.0.0) 2022-05-12 15:08:58 +02:00
Mark Karpov
c7ab0ccb2e
Version bump (9.2.1) 2022-05-09 10:31:15 +02:00
Simon Jakobi
13c62e41fc Support mtl-2.3 2022-05-09 09:58:16 +02:00
Mark Karpov
8962588794
Test with GHC 9.0.2 2022-02-13 14:03:51 +01:00
Mark Karpov
3b0f680e21 Allow text-2.0 2021-12-30 10:47:23 +01:00
Mark Karpov
d5556790fa Test with 3 latest versions of GHC, update Ormolu 2021-12-04 13:53:48 +01:00
Anton-Latukha
9a71a45399 Mention the performance advantages of takeWhile1P in its docs 2021-11-16 23:42:38 +01:00
Mark Karpov
3cf7549244
Point out that Megaparsec follows SemVer 2021-09-27 16:28:02 +02:00
Mark Karpov
3d26407aa3
Version bump (9.2.0) 2021-09-25 14:37:07 +02:00
Ben Orchard
064edbddd6 Add binary-format number parsers 2021-08-15 19:59:16 +02:00
Mark Karpov
925813d066 Add Safe annotation to the Text.Megaparsec.Error boot file 2021-08-14 19:06:57 +02:00
Anton-Latukha
9d92f5a490 Improve the docs for Text.Megaparsec.Class.token 2021-08-11 18:35:09 +02:00
Mark Karpov
f87298a611
Adjust the minimum version of scientific
Megaparsec added the Safe Haskell extension, which means that modules can
only import other safe modules. The dependency constraints include versions
of `scientific` that don't have the Safe Haskell extension on the module
Megaparsec is importing. This led to build problems.
2021-08-06 22:39:32 +02:00
Mark Karpov
3539bf970d
Allow transformers-0.6 2021-07-23 08:31:53 +02:00
Mark Karpov
8bae476691
Version bump (9.1.0) 2021-07-14 21:38:34 +02:00
Mark Karpov
3da2b14f6f
Test with GHC 8.10.5 2021-07-14 21:32:25 +02:00
Mark Karpov
5d4e3e7cfd Add a debugging helper that doesn't require a Show instance 2021-07-14 21:29:05 +02:00
Mark Karpov
e6fbc3d822 Fix CI (Trustworthy / Safe) 2021-07-14 21:01:09 +02:00
Mark Karpov
7fa3eed79b
Mention the documentation improvements in the changelog 2021-07-14 20:23:23 +02:00
Mark Karpov
ed6fdf71d9 Improve the writing 2021-04-25 16:03:52 +02:00
Mark Karpov
a804c07ff3
Use haskell/actions/setup v1.2 2021-03-09 20:20:15 +01:00
Mark Karpov
5d2f480825
Test with cabal-install 3.4 2021-03-06 18:14:09 +01:00
Mark Karpov
c5d6bb362c Test with GHC 9.0.1 and 8.10.4 2021-03-01 01:18:16 +01:00
Dennis Gosnell
7dda58a2f7
Fix Haddock link to Text.Megaparsec.Char.space1 2021-01-08 13:30:45 +01:00
Mark Karpov
3720d0b38e Test with GHC 8.10.3 2021-01-03 23:17:29 +01:00
Artem Pelenitsyn
55063c15ed typo in docs 2020-12-20 13:36:29 +01:00
Bodigrim
4a44dd58b9 Allow bytestring-0.11 2020-12-16 21:11:36 +01:00
Mark Karpov
040a1be79e
Add a performance note to the dos of ‘satisfy’
Close #434.
2020-12-14 12:08:57 +01:00
Mark Karpov
a8dd0e9c41
Use latest versions of GitHub actions 2020-11-24 16:11:44 +01:00
Mark Karpov
b7b6315390 Use ormolu-action 2020-11-16 11:59:43 +01:00
Mark Karpov
a1830d1f91
Version bump (9.0.1) 2020-10-30 12:15:36 +01:00
Mark Karpov
7391c09bfb
Mention that the ‘MonadPlus’ instance is unlawful
Close #430, close #429.
2020-10-30 12:06:20 +01:00
mlugg
ccf314b0b9 Add Safe Haskell support
Remove dependence on GeneralizedNewtypeDeriving and add Safe Haskell
extensions to every file.
2020-10-17 18:53:15 +02:00
Mark Karpov
15e04e720d
Test with GHC 8.10.2 2020-10-12 20:28:44 +02:00
Mark Karpov
2fd1884794 Fix nix definitions for Megaparsec 9 2020-10-12 20:17:15 +02:00
Mark Karpov
1f574c42ea
Fix a typo in the docs for ‘hspace1’
Close #424
2020-09-26 16:55:51 +02:00
Mark Karpov
4c36d65a69 Re-enable the tests on CI 2020-09-04 13:13:17 +02:00
Mark Karpov
3cd9e2e3a9
Version bump (9.0.0) 2020-09-04 12:45:55 +02:00
Mark Karpov
71010fae68 Try to make CI pass for now by disabling the tests
We will re-enable the tests once a compatible version of ‘hspec-megaparsec’
is released.
2020-09-02 19:50:45 +02:00
1computer1
34b34c3d93 Decouple the error reporting-related methods from ‘Stream’
Split the ‘Stream’ type class. The methods ‘showTokens’ and ‘tokensLength’
have been put into a separate type class ‘VisualStream’, while ‘reachOffset’
and ‘reachOffsetNoLine’ are now in ‘TraversableStream’. This should make
defining ‘Stream’ instances for custom streams easier.

Defined ‘Stream’ instances for lists and ‘Seq’s.
2020-09-02 19:50:45 +02:00
Mark Karpov
e618bb9ee3
Test with GHC 8.8.4 2020-08-22 21:51:31 +02:00