msgpack-0.7.1.1: A Haskell implementation of MessagePack

Portabilityportable
Stabilityexperimental
Maintainertanaka.hideyuki@gmail.com
Safe HaskellSafe-Infered

Data.MessagePack.Pack

Contents

Description

MessagePack Serializer using Data.Binary.Pack

Synopsis

Serializable class

class Packable a whereSource

Serializable class

Methods

from :: a -> BuilderSource

Serialize a value

Instances

Packable Bool 
Packable Double 
Packable Float 
Packable Int 
Packable String 
Packable () 
Packable ByteString 
Packable Text 
Packable Text 
Packable ByteString 
Packable Object 
Packable a => Packable [a] 
Packable a => Packable (Maybe a) 
Packable v => Packable (IntMap v) 
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 k, Packable v) => Packable (Map k v) 
(Packable k, Packable v) => Packable (HashMap k v) 
(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.