| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | tanaka.hideyuki@gmail.com |
Data.MessagePack.Object
Description
MessagePack object definition
- data Object
- = ObjectNil
- | ObjectBool Bool
- | ObjectInteger Int
- | ObjectDouble Double
- | ObjectRAW ByteString
- | ObjectArray [Object]
- | ObjectMap [(Object, Object)]
- class OBJECT a where
- toObject :: a -> Object
- fromObject :: Object -> Result a
- type Result a = Either String a
MessagePack Object
Object Representation of MessagePack data.
Constructors
| ObjectNil | |
| ObjectBool Bool | |
| ObjectInteger Int | |
| ObjectDouble Double | |
| ObjectRAW ByteString | |
| ObjectArray [Object] | |
| ObjectMap [(Object, Object)] |
Serialization to and from Object
The class of types serializable to and from MessagePack object
Methods
Encode a value to MessagePack object
fromObject :: Object -> Result aSource
Decode a value from MessagePack object