Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encode :: Value -> Builder
- encodeBigInteger :: Integer -> Builder
- encodeString :: ShortText -> Builder
- encodeAsciiString :: ShortText -> Builder
- encodeKey :: ShortText -> Builder
- encodeAsciiKey :: ShortText -> Builder
Encode JSON Document
encode :: Value -> Builder Source #
Encode a Json Value
to the Smile binary format.
This encoder does not produce backreferences.
Encode JSON Atoms
Integer
encodeBigInteger :: Integer -> Builder Source #
Encode a number using as SMILE BigInteger
token type (prefix 0x26
).
String
encodeString :: ShortText -> Builder Source #
Encode a string.
encodeAsciiString :: ShortText -> Builder Source #
Encode a string in which all characters are ASCII. This precondition is not checked. Resulting output will be corrupt if this condition is not satisfied.
Key
encodeAsciiKey :: ShortText -> Builder Source #
Encode a key in which all characters are ASCII. This precondition is not checked. Resulting output will be corrupt if this condition is not satisfied.