paripari-0.1.0.0: Fast-path parser combinators with fallback for error reporting

Safe HaskellNone
LanguageHaskell2010

Text.PariPari

Synopsis

Documentation

runParser :: Parser a -> FilePath -> ByteString -> Either Report a Source #

Run fast Acceptor and slower Reporter on the given ByteString **in parallel**. The FilePath is used for error reporting. When the acceptor does not return successfully, the result from the reporter is awaited.

runSeqParser :: Parser a -> FilePath -> ByteString -> Either Report a Source #

Run fast Acceptor and slower Reporter on the given ByteString **sequentially**. The FilePath is used for error reporting. When the acceptor does not return successfully, the result from the reporter is awaited.

runParserWithOptions :: ReportOptions -> Parser a -> FilePath -> ByteString -> Either Report a Source #

Run parsers **in parallel** with additional ReportOptions.

runSeqParserWithOptions :: ReportOptions -> Parser a -> FilePath -> ByteString -> Either Report a Source #

Run parsers **sequentially** with additional ReportOptions.