packer-0.1.9: Fast byte serializer and unserializer

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Data.Packer.IO

Description

 

Synopsis

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.