License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell98 |
- runPackingIO :: Int -> Packing a -> IO (a, ByteString)
- runUnpackingIO :: ByteString -> Unpacking a -> IO a
- tryUnpackingIO :: ByteString -> Unpacking a -> IO (Either SomeException a)
Documentation
runPackingIO :: Int -> Packing a -> IO (a, ByteString) Source
Run packing with a buffer created internally with a monadic action and return the bytestring
runUnpackingIO :: ByteString -> Unpacking a -> IO a Source
Unpack a bytestring using a monadic unpack action in the IO monad.
tryUnpackingIO :: ByteString -> Unpacking a -> IO (Either SomeException a) Source
Similar to runUnpackingIO
but catch exception and return an Either type.