iteratee-parsec-0.0.2: Package allowing parsec parser initerateeSource codeContentsIndex
Text.Parsec.Iteratee
Portabilityportable
Stabilitynone
Maintaineruzytkownik2@gmail.com
Description
Synopsis
safeParsecIteratee :: (Monad m, Reference r m, StreamChunk c el) => ParsecT (Cursor r m c el) u (IterateeG c el m) a -> u -> SourceName -> IterateeG c el m (Either ParseError a)
safeParsecIterateeShort :: (Stream Int (IterateeG s t m) t, Monad m, StreamChunk s t) => ParsecT Int u (IterateeG s t m) a -> u -> SourceName -> IterateeG s t m (Either ParseError a)
parsecIteratee :: (Monad m, Reference r m, StreamChunk c el) => ParsecT (Cursor r m c el) u (IterateeG c el m) a -> u -> SourceName -> IterateeG c el m (Either ParseError a)
Documentation
safeParsecIterateeSource
:: (Monad m, Reference r m, StreamChunk c el)
=> ParsecT (Cursor r m c el) u (IterateeG c el m) aA user state
-> uSource name
-> SourceName
-> IterateeG c el m (Either ParseError a)
Runs parser. If it suceed the remaining part of stream stands in stream, however if it fails everything stands in stream.
safeParsecIterateeShort :: (Stream Int (IterateeG s t m) t, Monad m, StreamChunk s t) => ParsecT Int u (IterateeG s t m) a -> u -> SourceName -> IterateeG s t 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.
parsecIterateeSource
:: (Monad m, Reference r m, StreamChunk c el)
=> ParsecT (Cursor r m c el) u (IterateeG c el m) aA user state
-> uSource name
-> SourceName
-> IterateeG c el m (Either ParseError a)
Runs parser. If it suceed the remaining part of stream stands in stream, however if it fails the stream is not in defined state.
Produced by Haddock version 2.6.0