msgpack-1.0.0: A Haskell implementation of MessagePack

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

Data.MessagePack.Object

Contents

Description

MessagePack object definition

Synopsis

MessagePack Object

data Object Source

Object Representation of MessagePack data.

Constructors

ObjectNil

represents nil

ObjectBool !Bool

represents true or false

ObjectInt !Int

represents an integer

ObjectFloat !Float

represents a floating point number

ObjectDouble !Double

represents a floating point number

ObjectStr !Text

extending Raw type represents a UTF-8 string

ObjectBin !ByteString

extending Raw type represents a byte array

ObjectArray !(Vector Object)

represents a sequence of objects

ObjectMap !(Vector (Object, Object))

represents key-value pairs of objects

ObjectExt !Word8 !ByteString

represents a tuple of an integer and a byte array where the integer represents type information and the byte array represents data.

MessagePack Serializable Types

class MessagePack a where Source

Instances

MessagePack Bool 
MessagePack Double 
MessagePack Float 
MessagePack Int 
MessagePack String 
MessagePack () 
MessagePack ByteString 
MessagePack ByteString 
MessagePack Text 
MessagePack Text 
MessagePack Object 
MessagePack a => MessagePack [a] 
MessagePack a => MessagePack (Maybe a) 
MessagePack v => MessagePack (IntMap v) 
MessagePack a => MessagePack (Vector a) 
(MessagePack k, MessagePack v) => MessagePack (Assoc [(k, v)]) 
(MessagePack a, MessagePack b) => MessagePack (Assoc (Vector (a, b))) 
(MessagePack a1, MessagePack a2) => MessagePack (a1, a2) 
(MessagePack k, MessagePack v, Ord k) => MessagePack (Map k v) 
(MessagePack k, MessagePack v, Hashable k, Eq k) => MessagePack (HashMap k v) 
(MessagePack a1, MessagePack a2, MessagePack a3) => MessagePack (a1, a2, a3) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4) => MessagePack (a1, a2, a3, a4) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5) => MessagePack (a1, a2, a3, a4, a5) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6) => MessagePack (a1, a2, a3, a4, a5, a6) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6, MessagePack a7) => MessagePack (a1, a2, a3, a4, a5, a6, a7) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6, MessagePack a7, MessagePack a8) => MessagePack (a1, a2, a3, a4, a5, a6, a7, a8) 
(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6, MessagePack a7, MessagePack a8, MessagePack a9) => MessagePack (a1, a2, a3, a4, a5, a6, a7, a8, a9)