Portability | portable |
---|---|
Stability | experimental |
Maintainer | tanaka.hideyuki@gmail.com |
Safe Haskell | Safe-Infered |
MessagePack object definition
- data Object
- = ObjectNil
- | ObjectBool Bool
- | ObjectInteger Int
- | ObjectFloat Float
- | ObjectDouble Double
- | ObjectRAW ByteString
- | ObjectArray [Object]
- | ObjectMap [(Object, Object)]
- class (Unpackable a, Packable a) => OBJECT a where
- toObject :: a -> Object
- fromObject :: Object -> a
- tryFromObject :: Object -> Either String a
MessagePack Object
Object Representation of MessagePack data.
Serialization to and from Object
class (Unpackable a, Packable a) => OBJECT a whereSource
The class of types serializable to and from MessagePack object
Encode a value to MessagePack object
fromObject :: Object -> aSource
Decode a value from MessagePack object
tryFromObject :: Object -> Either String aSource
Decode a value from MessagePack object
OBJECT Bool | |
OBJECT Double | |
OBJECT Float | |
OBJECT Int | |
OBJECT String | |
OBJECT () | |
OBJECT ByteString | |
OBJECT Text | |
OBJECT Text | |
OBJECT ByteString | |
OBJECT Object | |
OBJECT a => OBJECT [a] | |
OBJECT a => OBJECT (Maybe a) | |
OBJECT b => OBJECT (IntMap b) | |
(OBJECT a, OBJECT b) => OBJECT (Assoc [(a, b)]) | |
(OBJECT a, OBJECT b) => OBJECT (Assoc (Vector (a, b))) | |
(OBJECT a1, OBJECT a2) => OBJECT (a1, a2) | |
(Ord a, OBJECT a, OBJECT b) => OBJECT (Map a b) | |
(Hashable a, Eq a, OBJECT a, OBJECT b) => OBJECT (HashMap a b) | |
(OBJECT a1, OBJECT a2, OBJECT a3) => OBJECT (a1, a2, a3) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4) => OBJECT (a1, a2, a3, a4) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5) => OBJECT (a1, a2, a3, a4, a5) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6) => OBJECT (a1, a2, a3, a4, a5, a6) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7) => OBJECT (a1, a2, a3, a4, a5, a6, a7) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7, OBJECT a8) => OBJECT (a1, a2, a3, a4, a5, a6, a7, a8) | |
(OBJECT a1, OBJECT a2, OBJECT a3, OBJECT a4, OBJECT a5, OBJECT a6, OBJECT a7, OBJECT a8, OBJECT a9) => OBJECT (a1, a2, a3, a4, a5, a6, a7, a8, a9) |