msgpack-0.6.1.3: A Haskell implementation of MessagePack

Portabilityportable
Stabilityexperimental
Maintainertanaka.hideyuki@gmail.com

Data.MessagePack.Object

Contents

Description

MessagePack object definition

Synopsis

MessagePack Object

Serialization to and from Object

class (Unpackable a, Packable a) => OBJECT a whereSource

The class of types serializable to and from MessagePack object

Methods

toObject :: a -> ObjectSource

Encode a value to MessagePack object

fromObject :: Object -> aSource

Decode a value from MessagePack object

tryFromObject :: Object -> Either String aSource

Decode a value from MessagePack object

Instances

OBJECT Bool 
OBJECT Double 
OBJECT Float 
OBJECT Int 
OBJECT String 
OBJECT () 
OBJECT ByteString 
OBJECT ByteString 
OBJECT Text 
OBJECT Text 
OBJECT Object 
OBJECT a => OBJECT [a] 
OBJECT a => OBJECT (Maybe a) 
(OBJECT a, OBJECT b) => OBJECT (Assoc [(a, b)]) 
(OBJECT a1, OBJECT a2) => OBJECT (a1, a2) 
(OBJECT a1, OBJECT a2, OBJECT a3) => OBJECT (a1, a2, a3) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4) => OBJECT (a1, a2, a3, a4) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5) => OBJECT (a1, a2, a3, a4, a5) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6) => OBJECT (a1, a2, a3, a4, a5, a6) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7) => OBJECT (a1, a2, a3, a4, a5, a6, a7) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7, OBJECT a8) => OBJECT (a1, a2, a3, a4, a5, a6, a7, a8) 
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7, OBJECT a8, OBJECT a9) => OBJECT (a1, a2, a3, a4, a5, a6, a7, a8, a9)