Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class ToMsgPack a where
- class FromMsgPack a where
- data Object
- data MsgPackException
Documentation
class ToMsgPack a where Source #
Type class for values which support MessagePack serialization.
toMsgPack :: a -> Packing () Source #
Serializes the provided value as MessagePack within a Packing
monad.
msgPackSize :: MonadThrow m => a -> m Int Source #
Computes the size of the serialized data in bytes.
ToMsgPack Bool Source # | ToMsgPack instance for boolean values. This implements serialization for the MessagePack bool format family. |
ToMsgPack Double Source # | ToMsgPack instance for double values. This implements serialization for the MessagePack float64 format family. |
ToMsgPack Float Source # | ToMsgPack instance for float values. This implements serialization for the MessagePack float32 format family. |
ToMsgPack Int Source # | ToMsgPack instance for |
ToMsgPack Int8 Source # | ToMsgPack instance for |
ToMsgPack Int16 Source # | ToMsgPack instance for |
ToMsgPack Int32 Source # | ToMsgPack instance for |
ToMsgPack Int64 Source # | ToMsgPack instance for |
ToMsgPack Word8 Source # | ToMsgPack instance for |
ToMsgPack Word16 Source # | ToMsgPack instance for |
ToMsgPack Word32 Source # | ToMsgPack instance for |
ToMsgPack Word64 Source # | ToMsgPack instance for '64' values. This implements
serialization for those unsigned values within the MessagePack int
format family, which fit in a |
ToMsgPack ByteString Source # | ToMsgPack instance for |
ToMsgPack Text Source # | ToMsgPack instance for |
ToMsgPack Object Source # | ToMsgPack instance for general MessagePack |
ToMsgPack a => ToMsgPack [a] Source # | ToMsgPack instance for lists. This implements serialization for
the MessagePack array format family for collections of up to a
length of |
(ToMsgPack a, ToMsgPack b) => ToMsgPack (a, b) Source # | ToMsgPack instance for pairs. This instance serializes the first value of the pair and then the second value of the pair. |
(ToMsgPack k, ToMsgPack v) => ToMsgPack (Map k v) Source # | FromMsgPack instance for maps. This implements deserialization
for the MessagePack map format family for maps of up to |
class FromMsgPack a where Source #
Type class for values which support MessagePack deserialization.
fromMsgPack :: Unpacking a Source #
Deserializes a MessagePack value in an Unpacking
monad.
FromMsgPack Bool Source # | FromMsgPack instance for boolean values. This implements deserialization for the MessagePack bool format family. |
FromMsgPack Double Source # | FromMsgPack instance for double values. This implements deserialization for the MessagePack float64 format family. |
FromMsgPack Float Source # | FromMsgPack instance for float values. This implements deserialization for the MessagePack float32 format family. |
FromMsgPack Int Source # | FromMsgPack instance for |
FromMsgPack Int8 Source # | FromMsgPack instance for |
FromMsgPack Int16 Source # | FromMsgPack instance for |
FromMsgPack Int32 Source # | FromMsgPack instance for |
FromMsgPack Int64 Source # | FromMsgPack instance for |
FromMsgPack Word8 Source # | FromMsgPack instance for |
FromMsgPack Word16 Source # | FromMsgPack instance for |
FromMsgPack Word32 Source # | FromMsgPack instance for |
FromMsgPack Word64 Source # | FromMsgPack instance for |
FromMsgPack ByteString Source # | FromMsgPack instance for |
FromMsgPack Text Source # | FromMsgPack instance for |
FromMsgPack Object Source # | FromMsgPack instance for general MessagePack |
FromMsgPack a => FromMsgPack [a] Source # | FromMsgPack instance for lists. This implements deserialization
for the MessagePack array format family for collections of up to a
length of |
(FromMsgPack a, FromMsgPack b) => FromMsgPack (a, b) Source # | FromMsgPack instance for pairs. This instance deserializes the first value of the pair and then the second value of the pair. |
(Ord k, Ord v, FromMsgPack k, FromMsgPack v) => FromMsgPack (Map k v) Source # | FromMsgPack instance for |
Data type wrapping any supported MessagePack value.