-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A Haskell implementation of MessagePack
--
-- A Haskell implementation of MessagePack http://msgpack.org/
--
-- This is a fork of msgpack-haskell
-- https://github.com/msgpack/msgpack-haskell, since the original
-- author is unreachable. This fork incorporates a number of bugfixes and
-- is actively being developed.
@package msgpack-binary
@version 0.0.16
-- | Simple interface to pack and unpack MessagePack data.
module Data.MessagePack
-- | Pack a Haskell value to MessagePack binary.
pack :: MessagePack a => a -> ByteString
-- | Unpack MessagePack binary to a Haskell value. If it fails, it fails in
-- the Monad. In the Maybe monad, failure returns Nothing.
unpack :: (Applicative m, Monad m, MonadFail m, MessagePack a) => ByteString -> m a
unpackEither :: MessagePack a => ByteString -> Either DecodeError a
-- | Unpack MessagePack binary to a Haskell value.
--
-- On failure, returns a list of error messages.
unpackValidate :: MessagePack a => ByteString -> Validate DecodeError a
putObject :: Object -> Put
putNil :: Put
putBool :: Bool -> Put
putInt :: Int64 -> Put
putWord :: Word64 -> Put
putFloat :: Float -> Put
putDouble :: Double -> Put
putStr :: Text -> Put
putBin :: ByteString -> Put
putArray :: (a -> Put) -> Vector a -> Put
putMap :: (a -> Put) -> (b -> Put) -> Vector (a, b) -> Put
putExt :: Word8 -> ByteString -> Put
getObject :: Get Object
getNil :: Get ()
getBool :: Get Bool
getInt :: Get Int64
getWord :: Get Word64
getFloat :: Get Float
getDouble :: Get Double
getStr :: Get Text
getBin :: Get ByteString
getArray :: Get a -> Get (Vector a)
getMap :: Get a -> Get b -> Get (Vector (a, b))
getExt :: Get (Word8, ByteString)
instance Data.Binary.Class.Binary Data.MessagePack.Types.Object.Object
instance Control.Monad.Validate.Class.MonadValidate Data.MessagePack.Types.DecodeError.DecodeError Data.Binary.Get.Internal.Get