data-msgpack-0.0.4: A Haskell implementation of MessagePack

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

Data.MessagePack.Class

Description

MessagePack object definition

Documentation

class MessagePack a where Source #

Instances

MessagePack Bool Source # 
MessagePack Double Source # 
MessagePack Float Source # 
MessagePack Int Source # 
MessagePack Int8 Source # 
MessagePack Int16 Source # 
MessagePack Int32 Source # 
MessagePack Int64 Source # 
MessagePack Word Source # 
MessagePack Word8 Source # 
MessagePack Word16 Source # 
MessagePack Word32 Source # 
MessagePack Word64 Source # 
MessagePack () Source # 

Methods

toObject :: () -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m () Source #

MessagePack String Source # 
MessagePack ByteString Source # 
MessagePack ByteString Source # 
MessagePack Text Source # 
MessagePack Text Source # 
MessagePack Object Source # 
MessagePack a => MessagePack [a] Source # 

Methods

toObject :: [a] -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m [a] Source #

MessagePack a => MessagePack (Maybe a) Source # 

Methods

toObject :: Maybe a -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (Maybe a) Source #

MessagePack v => MessagePack (IntMap v) Source # 
(MessagePack a, MessagePack b) => MessagePack (Assoc [(a, b)]) Source # 

Methods

toObject :: Assoc [(a, b)] -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (Assoc [(a, b)]) Source #

(MessagePack a1, MessagePack a2) => MessagePack (a1, a2) Source # 

Methods

toObject :: (a1, a2) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2) Source #

(MessagePack k, MessagePack v, Ord k) => MessagePack (Map k v) Source # 

Methods

toObject :: Map k v -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (Map k v) Source #

(MessagePack k, MessagePack v, Hashable k, Eq k) => MessagePack (HashMap k v) Source # 

Methods

toObject :: HashMap k v -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (HashMap k v) Source #

(MessagePack a1, MessagePack a2, MessagePack a3) => MessagePack (a1, a2, a3) Source # 

Methods

toObject :: (a1, a2, a3) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3) Source #

(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4) => MessagePack (a1, a2, a3, a4) Source # 

Methods

toObject :: (a1, a2, a3, a4) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4) Source #

(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5) => MessagePack (a1, a2, a3, a4, a5) Source # 

Methods

toObject :: (a1, a2, a3, a4, a5) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4, a5) Source #

(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6) => MessagePack (a1, a2, a3, a4, a5, a6) Source # 

Methods

toObject :: (a1, a2, a3, a4, a5, a6) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4, a5, a6) Source #

(MessagePack a1, MessagePack a2, MessagePack a3, MessagePack a4, MessagePack a5, MessagePack a6, MessagePack a7) => MessagePack (a1, a2, a3, a4, a5, a6, a7) Source # 

Methods

toObject :: (a1, a2, a3, a4, a5, a6, a7) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4, a5, a6, a7) Source #

(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) Source # 

Methods

toObject :: (a1, a2, a3, a4, a5, a6, a7, a8) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4, a5, a6, a7, a8) Source #

(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) Source # 

Methods

toObject :: (a1, a2, a3, a4, a5, a6, a7, a8, a9) -> Object Source #

fromObject :: (Applicative m, Monad m) => Object -> m (a1, a2, a3, a4, a5, a6, a7, a8, a9) Source #

class GMessagePack f where Source #

Minimal complete definition

gToObject, gFromObject

Methods

gToObject :: f a -> Object Source #

gFromObject :: (Applicative m, Monad m) => Object -> m (f a) Source #