parseerror-eq
Adds and Eq instance for Parsec's ParseError if needed
A library to help with compatibility against Parsec versions. Adds an
instance of `Eq` to the `ParseError` data type, if it's missing from the
version of Parsec that you're compiling against.
To test Parsec's parsing, it's very useful to have an Eq instance for
ParseError. This is included in Parsec versions >= 3.1.9, but you need
to define it yourself in previous versions.
This simple library conditionally adds an Eq instance for ParseError
only if the Parsec version being used is < 3.1.9. To use it, just add
parseerror-eq to your cabal dependencies, and in the module where you want
to compare ParseErrors,
> import Text.ParseErrorEq ()
The ParseError Eq instance will be imported if it is necessary, otherwise
the ParseErrorEq module is empty, so nothing will happen. This ensures that
your code that needs the ParseError Eq instance will work regardless of the
Parsec version that it is compiled against.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.1 | 2015-04-23 18:14 UTC | sestrella | +3/−3 lines, 1 filesdep ~basenew-uploaderPVP ok | |
| 0.1.0.0 | 2015-03-24 22:13 UTC | jsl | +124/−0 lines, 5 filesdep +basedep +hspecdep +parsecsetup-changed |
Dependencies of parseerror-eq-0.1.0.1
base >=4.5 && <4.9 4.8.2.0 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
hspec >=0 2.11.17 → 2.11.18
| 2026-10-01 14:14 UTC | 2.11.18 | +7/−4 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2026-03-04 18:01 UTC | 2.11.17 | +11/−19 lines, 6 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2025-12-12 14:07 UTC | 2.11.16 | +25/−7 lines, 5 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested |
| 2025-12-08 03:04 UTC | 2.11.15 | +8/−5 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2025-09-30 14:32 UTC | 2.11.14 | +9/−7 lines, 4 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested |
showing 5 of 171 versions
parsec >=0 3.1.17.0 → 3.1.18.0
| 2025-01-05 00:08 UTC | 3.1.18.0 | +159/−170 lines, 7 filesdep −faildep ~basedep ~bytestringdep ~mtlPVP: major bump suggested |
| 2023-10-04 06:08 UTC | 3.1.17.0 | +112/−25 lines, 8 filesdep +deepseqdep ~basedep ~bytestringdep ~tastyPVP: major bump suggested |
| 2023-01-08 20:47 UTC | 3.1.16.1 | +6/−2 lines, 3 filesPVP ok |
| 2023-01-08 18:03 UTC | 3.1.16.0 | +124/−19 lines, 8 filesdep ~basePVP ok |
| 2022-05-10 10:14 UTC | 3.1.15.1 | +19/−15 lines, 9 filesdep ~basedep ~mtldep ~textPVP ok |
showing 5 of 27 versions
Reverse dependencies
2 packages depend on parseerror-eq