Copyright | Jeremy List |
---|---|
License | BSD-3 |
Maintainer | quick.dudley@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Phase
s for processing bytestrings.
- unpackBS :: Phase p ByteString Word8 ()
- unpackLBS :: Phase p ByteString Word8 ()
- parseFile_ :: p -> Phase p Word8 o a -> FilePath -> IO (Either [(p, [String])] [a])
Documentation
unpackBS :: Phase p ByteString Word8 () Source #
A Phase
which takes ByteString
s as input and yields their individual
bytes.
unpackLBS :: Phase p ByteString Word8 () Source #
A Phase
which takes lazy ByteString
s 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.