msgpack-0.4.0.1: A Haskell binding to MessagePack

Portabilityportable
Stabilityexperimental
Maintainertanaka.hideyuki@gmail.com

Data.MessagePack

Contents

Description

Simple interface to pack and unpack MessagePack data.

Synopsis

Documentation

Pack functions

packToString :: Put -> ByteStringSource

Pack to ByteString.

packToHandle :: Handle -> Put -> IO ()Source

Pack to Handle

packToHandle' :: Handle -> Put -> IO ()Source

Pack to Handle and Flush Handle

packToFile :: FilePath -> Put -> IO ()Source

Pack to File

Unpack functions

unpackFromString :: (Monad m, IsByteString s) => s -> Parser a -> m aSource

Unpack from ByteString

unpackFromHandle :: MonadCatchIO m => Handle -> Parser a -> m aSource

Unpack from Handle

unpackFromFile :: MonadCatchIO m => FilePath -> Parser a -> m aSource

Unpack from File

unpackFromStringI :: (Monad m, IsByteString s) => s -> Iteratee ByteString m a -> m aSource

Iteratee interface to unpack from ByteString

unpackFromHandleI :: MonadCatchIO m => Handle -> Iteratee ByteString m a -> m aSource

Iteratee interface to unpack from Handle

unpackFromFileI :: MonadCatchIO m => FilePath -> Iteratee ByteString m a -> m aSource

Iteratee interface to unpack from File