Portability | portable |
---|---|

Stability | none |

Maintainer | uzytkownik2@gmail.com |

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

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

# 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.