attoparsec-parsec: An Attoparsec compatibility layer for Parsec

[ library, mit, parsing ] [ Propose Tags ]

This package provides an implementation of Data.Attoparsec.Text in terms of Parsec. It can be used to write parsers that can be compiled against both Attoparsec and Parsec.

Attoparsec is an awesome and very fast library, but it still has a weak point: It does not generate very useful error messages on parse errors. Compiling an Attoparsec parser against Parsec can be useful in at least two situations.

  • Parsec can be used while developing Attoparsec parsers, so that you get better error messages on failing test cases.

  • You can use Attoparsec for parsing, so that you benefit from it's speed. And on parse errors you can re-parse the input with Parsec, so that you can display a useful error message to the user.

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.1, 0.0.2, 0.1.1, 0.1.2, 0.1.3
Dependencies attoparsec (>=0.10.0.0), base (>=4 && <5), parsec (>=3.1.2), text [details]
License MIT
Copyright (c) 2011, 2012 Simon Hengel
Author Simon Hengel <sol@typeful.net>
Maintainer Simon Hengel <sol@typeful.net>
Category Parsing
Uploaded by SimonHengel at 2012-06-17T18:11:20Z
Distributions NixOS:0.1.3
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5184 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]