phaser-1.0.0.1: Incremental multiple pass parser library.

CopyrightJeremy List
LicenseBSD-3
Maintainerquick.dudley@gmail.com
Safe HaskellNone
LanguageHaskell2010

Codec.Phaser.ByteString

Description

Phases for processing bytestrings.

Synopsis

Documentation

unpackBS :: Monoid p => Phase p ByteString Word8 () Source #

A Phase which takes ByteStrings as input and yields their individual bytes.

unpackLBS :: Monoid p => Phase p ByteString Word8 () Source #

A Phase which takes lazy ByteStrings as input and yields their individual bytes.

parseFile_ :: (Monoid p, PhaserType s) => p -> s p Word8 o a -> FilePath -> IO (Either [(p, [String])] [a]) Source #

Run a parser on input from a file. Input is provided as bytes, if characters are needed: a decoding phase such as utf8_stream or latin1 may be used. Counter type agnostic version.