msgpack-persist-0.0.17: A Haskell implementation of MessagePack
Copyright(c) Hideyuki Tanaka 2009-2015
LicenseBSD3
Maintainertanaka.hideyuki@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.MessagePack

Description

Simple interface to pack and unpack MessagePack data.

Synopsis

Simple interface to pack and unpack msgpack binary

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

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

putNil :: Put Source #

putBool :: Bool -> Put Source #

putInt :: Int64 -> Put Source #

putStr :: Text -> Put Source #

putArray :: (a -> Put) -> Vector a -> Put Source #

putMap :: (a -> Put) -> (b -> Put) -> Vector (a, b) -> Put Source #

Orphan instances

Persist Object Source # 
Instance details

Methods

put :: Object -> Put () #

get :: Get Object #