Z-MessagePack-0.4.0.1: MessagePack
Copyright(c) Hideyuki Tanaka 2009-2015
(c) Dong Han 2020
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Z.Data.MessagePack.Builder

Description

Builders to encode Haskell data types in MessagePack format.

Synopsis

Documentation

scientificValue :: Integer -> Int64 -> Value Source #

Construct a scientific value, see scientific.

scientific :: Integer -> Int64 -> Builder () Source #

Write a scientific value in ext 0x00(positive) and 0x01(negative) format, e.g.

0xD50x000x000x00
0xC7XXXXXXXX0x00base10 exponent(MessagePack int format)coefficient(big endian 256-base limbs

timestampValue :: Int64 -> Int32 -> Value Source #

Construct a timestamp(seconds, nanoseconds) value.

timestamp :: Int64 -> Int32 -> Builder () Source #

Write a timestamp(seconds, nanoseconds) in ext 0xFF format, e.g.

array :: Vec v a => (a -> Builder ()) -> v a -> Builder () Source #

array' :: (a -> Builder ()) -> [a] -> Builder () Source #

map :: (a -> Builder ()) -> (b -> Builder ()) -> Vector (a, b) -> Builder () Source #

map' :: (a -> Builder ()) -> (b -> Builder ()) -> [(a, b)] -> Builder () Source #