machines-attoparsec-0: Parse machines streams with attoparsec parsers.

Safe HaskellNone
LanguageHaskell2010

Data.Machine.Attoparsec.ByteString

Synopsis

Documentation

parse :: forall m a. Monad m => Parser a -> MachineT m (Stack ByteString) (Either String a) Source #

Parse one a out of a ByteString stream, or an error when a parser fails. - The stack allows one to have a sequence of parsers that pick up where the last left off.

many :: forall m a. Monad m => Parser a -> MachineT m (Stack ByteString) (Either String a) Source #

Parse a continuous stream of as out of a ByteStrings stream.