msgpack-1.0.1.0: A Haskell implementation of MessagePack

Copyright© Hideyuki Tanaka 2009-2015
© Herbert Valerio Riedel 2019
LicenseBSD3
Safe HaskellTrustworthy
LanguageHaskell2010

Data.MessagePack

Contents

Description

Simple interface to encode/decode to/from the MessagePack format.

Synopsis

Simple interface to pack and unpack msgpack binary

pack :: MessagePack a => a -> ByteString Source #

Pack a Haskell value to MessagePack binary.

unpack :: MessagePack a => ByteString -> Maybe a Source #

Unpack MessagePack binary to a Haskell value. If it fails, it returns Nothing.

Re-export modules