Copyright | (c) Hideyuki Tanaka 2009-2015 (c) Dong Han 2020 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
MessagePack Value
Representation of MessagePack data.
Bool !Bool | true or false |
Int !Int64 | an integer |
Float !Float | a floating point number |
Double !Double | a floating point number |
Str !Text | a UTF-8 string |
Bin !Bytes | a byte array |
Array !(Vector Value) | a sequence of objects |
Map !(Vector (Value, Value)) | key-value pairs of objects |
Ext | |
| |
Nil | nil |
Instances
parse into MessagePack Value
parseValue :: Bytes -> (Bytes, Either ParseError Value) Source #
Parse Value
without consuming trailing bytes.
parseValue' :: Bytes -> Either ParseError Value Source #
Parse Value
, if there're bytes left, parsing will fail.