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

Safe HaskellNone
LanguageHaskell2010

Data.Machine.Attoparsec.Text

Synopsis

Documentation

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

Parse one a out of a stream of Text, 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 Text) (Either String a) Source #

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