parse :: (Monad m, ParserInput a)=> Parser a bAttoparsec parser
-> Parser a m (Maybe (Either ParsingError b))Pipes parser
Convert an attoparsec Parser to a pipes-parse
Parser.
This Parser is compatible with the tools from Pipes.Parse.
It returns Nothing if the underlying Producer is exhausted, otherwise it attempts to run the given attoparsec Parser on the underlying Producer, possibly failing with ParsingError.