-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | MessagePack Serialization an Deserialization for Packer
--
-- This package implements MessagePack on top of the Packer package.
@package packer-messagepack
@version 0.2.0.0
module Data.Packer.MessagePack
-- | Type class for values which support MessagePack serialization.
class ToMsgPack a
-- | Serializes the provided value as MessagePack within a Packing
-- monad.
toMsgPack :: ToMsgPack a => a -> Packing ()
-- | Computes the size of the serialized data in bytes.
msgPackSize :: (ToMsgPack a, MonadThrow m) => a -> m Int
-- | Type class for values which support MessagePack deserialization.
class FromMsgPack a
-- | Deserializes a MessagePack value in an Unpacking monad.
fromMsgPack :: FromMsgPack a => Unpacking a
-- | Data type wrapping any supported MessagePack value.
data Object
ObjectString :: Text -> Object
ObjectBinary :: ByteString -> Object
ObjectUInt :: Word64 -> Object
ObjectInt :: Int64 -> Object
ObjectBool :: Bool -> Object
ObjectFloat32 :: Float -> Object
ObjectFloat64 :: Double -> Object
ObjectArray :: [Object] -> Object
ObjectMap :: (Map Object Object) -> Object
ObjectNil :: Object
data MsgPackException
MsgPackDeserializationFailure :: Text -> MsgPackException
MsgPackSerializationFailure :: Text -> MsgPackException