msgpack-0.6.1.3: A Haskell implementation of MessagePack

Portabilityportable
Stabilityexperimental
Maintainertanaka.hideyuki@gmail.com

Data.MessagePack.Unpack

Contents

Description

MessagePack Deserializer using Data.Attoparsec

Synopsis

MessagePack deserializer

class Unpackable a whereSource

Deserializable class

Methods

get :: Parser aSource

Deserialize a value

Instances

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

Simple function to unpack a Haskell value

unpack :: (Unpackable a, IsByteString s) => s -> aSource

Unpack MessagePack string to Haskell data.

tryUnpack :: (Unpackable a, IsByteString s) => s -> Either String aSource

Unpack MessagePack string to Haskell data.

Unpack exception

data UnpackError Source

The exception of unpack

Constructors

UnpackError String 

ByteString utils