data-msgpack-0.0.11: A Haskell implementation of MessagePack

Copyright(c) Hideyuki Tanaka 2009-2015
LicenseBSD3
Maintainertanaka.hideyuki@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.MessagePack

Contents

Description

Simple interface to pack and unpack MessagePack data.

Synopsis

Simple interface to pack and unpack msgpack binary

pack :: MessagePack a => a -> ByteString #

Pack a Haskell value to MessagePack binary.

unpack :: (Applicative m, Monad m, MessagePack a) => ByteString -> m a #

Unpack MessagePack binary to a Haskell value. If it fails, it fails in the Monad. In the Maybe monad, failure returns Nothing.

Re-export modules

putArray :: (a -> Put) -> [a] -> Put #

putMap :: (a -> Put) -> (b -> Put) -> [(a, b)] -> Put #

getNil :: Get () #

getArray :: Get a -> Get [a] #

getMap :: Get a -> Get b -> Get [(a, b)] #

Orphan instances

Binary Object # 
Instance details

Methods

put :: Object -> Put #

get :: Get Object #

putList :: [Object] -> Put #