Portability | portable |
---|---|
Stability | experimental |
Maintainer | [email protected] |
Data.MessagePack.Unpack
Contents
Description
MessagePack Deserializer using Data.Attoparsec
- class Unpackable a where
- unpack :: (Unpackable a, IsByteString s) => s -> a
- tryUnpack :: (Unpackable a, IsByteString s) => s -> Either String a
- data UnpackError = UnpackError String
- class IsByteString s where
- toBS :: s -> ByteString
MessagePack deserializer
class Unpackable a whereSource
Deserializable class
Instances
Simple function to unpack a Haskell value
unpack :: (Unpackable a, IsByteString s) => s -> aSource
Unpack MessagePack string to Haskell data.
tryUnpack :: (Unpackable a, IsByteString s) => s -> Either String aSource
Unpack MessagePack string to Haskell data.