Copyright | (c) Hideyuki Tanaka, 2009-2015 |
---|---|
License | BSD3 |
Maintainer | tanaka.hideyuki@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Simple interface to pack and unpack MessagePack data.
- pack :: MessagePack a => a -> ByteString
- unpack :: (Applicative m, Monad m, MessagePack a) => ByteString -> m a
Simple interface to pack and unpack msgpack binary
pack :: MessagePack a => a -> ByteString Source #
Pack a Haskell value to MessagePack binary.
unpack :: (Applicative m, Monad m, MessagePack a) => ByteString -> m a Source #
Unpack MessagePack binary to a Haskell value. If it fails, it fails in the Monad. In the Maybe monad, failure returns Nothing.