Utility functions for testing Megaparsec parsers with Hspec https://github.com/mrkkrp/hspec-megaparsec
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Consult the Haddocks for usage, which should be trivial. Also see test suite of this package or Megaparsec test suite.
Issues, bugs, and questions may be reported in the GitHub issue tracker for this project.
Pull requests are also welcome.
Copyright © 2016–present Mark Karpov
Distributed under BSD 3 clause license.
Hspec Megaparsec 2.1.0
Works with Megaparsec 8.
Dropped support for GHC 8.2.
Hspec Megaparsec 2.0.1
hspecunder the hood to take advantage of its pretty colorful error reporting.
Dropped support for GHC 8.0 and older.
Hspec Megaparsec 2.0.0
To be used with Megaparsec 7.
Dropped support for GHC 7.8.
Hspec Megaparsec 1.1.0
HasCallStackconstraint to combinators to improve detection of locations where test failures happen.
Hspec Megaparsec 1.0.0
- To be used with Megaparsec 6.
Hspec Megaparsec 0.3.1
Support for Megaparsec 5.2.0.
Drop support for GHC 7.6.
Hspec Megaparsec 0.3.0
- Added helpers for parse error construction (useful with
cstm. Also added an auxiliary type
Hspec Megaparsec 0.2.1
- Refreshed obsolete documentation for
shouldFailWithand how it reports not matching parse errors.
Hspec Megaparsec 0.2.0
- This version of
hspec-megaparsecshould be used with Megaparsec 5.
Hspec Megaparsec 0.1.1
- Make it pass tests with Megaparsec 4.4.0 and later.
Hspec Megaparsec 0.1.0
- Initial release.