| Copyright | Jeremy List |
|---|---|
| License | BSD-3 |
| Maintainer | quick.dudley@gmail.com |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Codec.Phaser.ByteString
Description
Phases for processing bytestrings.
Synopsis
- unpackBS :: Monoid p => Phase p ByteString Word8 ()
- unpackLBS :: Monoid p => Phase p ByteString Word8 ()
- parseFile_ :: (Monoid p, PhaserType s) => p -> s p Word8 o a -> FilePath -> IO (Either [(p, [String])] [a])
- parseHandle_ :: (Monoid p, PhaserType s) => p -> s p Word8 o a -> Handle -> IO (Either [(p, [String])] [a])
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.