iteratee-parsec-0.0.6: Package allowing parsec parser initeratee

Portabilityportable
Stabilitynone
Maintaineruzytkownik2@gmail.com

Text.Parsec.Iteratee.Chunk

Description

Module providing simple implementation based on accumulating chunks. It is optimised for short parsers.

Synopsis

Documentation

safeParsecIterateeShort :: (Monad m, Nullable s, ListLike s t) => ParsecT Int u (Iteratee s m) a -> u -> SourceName -> Iteratee s m (Either ParseError a)Source

Create an Iteratee from a ParsecT parser. This is most efficient for relatively smaller parsers (< 1e5 chars), and becomes increasingly inefficient as the parser size increases. If the parse fails, no input is consumed. If the parse succeeds, any data remaining after the parse is available to the iteratee.