transient-0.6.0.1: composing programs with multithreading, events and distributed computing

Safe HaskellNone
LanguageHaskell2010

Transient.Parse

Synopsis

Documentation

setParseStream :: (Typeable str, IsString str) => IO str -> TransIO () Source #

set a stream of strings to be parsed

setParseString :: (Typeable str, IsString str) => str -> TransIO () Source #

set a string to be parsed

data ParseContext str Source #

The parse context contains either the string to be parsed or a computation that gives an stream of strings or both. First, the string is parsed. If it is empty, the stream is pulled for more.

Constructors

IsString str => ParseContext (IO str) str 

manyTill :: (Monad f, Alternative f) => f a1 -> f a2 -> f [a1] Source #

withData :: (ByteString -> TransIO (a, ByteString)) -> TransIO a Source #

bring the data of a parse context as a lazy byteString to a parser and actualize the parse context with the result

giveData :: TransIO ByteString Source #

bring the data of the parse context as a lazy byteString