phaser-0.2.0.0: 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 :: Phase p ByteString Word8 () Source #

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

unpackLBS :: Phase p ByteString Word8 () Source #

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

parseFile_ :: p -> Phase 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.