Extension of the parsers library with more capability and efficiency
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.
An extension of the parsers library
What those classes like
CharParsing lack is the
ability to express certain efficient parser primitives like Attoparsec’s
takeWhile. To rectify for
this failing and enable more efficient parsers to be expressed, the present package
input-parsers adds type classes
common characteristic of almost all their methods is that their parse result has the same type as the parser input,
and is a prefix of the input.
The present package also exports the class DeterministicParsing, which provides a number of parser methods that are guaranteed to succeed with a single (typically longest possible) result. This is most useful for writing the lexical layer of a parser, but it can help avoid ambiguities and inefficiencies in general.
Revision history for input-parsers
0.1.0.1 – 2020-07-19
- Incremented the upper bound of
0.1.0.0 – 2020-07-18
- First version. Released on an unsuspecting world.