The hspec-megaparsec package

[Tags:bsd3, library, test]

Utility functions for testing Megaparsec parsers with Hspec.

[Skip to Readme]


Versions 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.3.1
Change log
Dependencies base (>=4.7 && <5.0), containers (==0.5.*), hspec-expectations (>=0.5 && <0.9), megaparsec (>=5.0 && <6.0), semigroups (==0.18.*), tagged (==0.8.*) [details]
License BSD3
Author Mark Karpov <>
Maintainer Mark Karpov <>
Category Testing, Parsing
Home page
Bug tracker
Source repository head: git clone
Uploaded Wed Feb 1 19:08:51 UTC 2017 by mrkkrp
Distributions LTSHaskell:0.2.1, NixOS:0.3.1, Stackage:0.3.1, Tumbleweed:0.3.1
Downloads 354 total (69 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2017-02-01 [all 1 reports]




devTurn on development settings.DisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for hspec-megaparsec

Readme for hspec-megaparsec-0.3.1

Hspec Megaparsec

License BSD3 Hackage Stackage Nightly Stackage LTS Build Status Coverage Status

The package is the recommended library for testing Megaparsec parsers with with Hspec. As of Megaparsec 5.1.0, its test suite is re-written with Hspec and this package with a few ad-hoc helpers.

Consult Haddocks for usage, which should be trivial. Also see test suite of this package or Megaparsec test suite.


Copyright © 2016–2017 Mark Karpov

Distributed under BSD 3 clause license.