Copyright | (c) Hideyuki Tanaka 2009-2015 (c) Dong Han 2020 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Value
- parseValue :: Bytes -> (Bytes, Either ParseError Value)
- parseValue' :: Bytes -> Either ParseError Value
- parseValueChunks :: Monad m => m Bytes -> Bytes -> m (Bytes, Either ParseError Value)
- parseValueChunks' :: Monad m => m Bytes -> Bytes -> m (Either ParseError Value)
- value :: Parser Value
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.
parseValueChunks :: Monad m => m Bytes -> Bytes -> m (Bytes, Either ParseError Value) Source #
Increamental parse Value
without consuming trailing bytes.
parseValueChunks' :: Monad m => m Bytes -> Bytes -> m (Either ParseError Value) Source #
Increamental parse Value
, if there're bytes left, parsing will fail.