msgpack-0.6.4: A Haskell implementation of MessagePack

Portabilityportable
Stabilityexperimental
Maintainertanaka.hideyuki@gmail.com

Data.MessagePack.Pack

Contents

Description

MessagePack Serializer using Data.Binary.Pack

Synopsis

Serializable class

class Packable a whereSource

Serializable class

Methods

put :: a -> PutSource

Serialize a value

Instances

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

Simple function to pack a Haskell value

pack :: Packable a => a -> ByteStringSource

Pack Haskell data to MessagePack string.