json-encoder-0.1.5: A direct-to-bytes single-pass JSON encoder with a declarative DSL

Safe HaskellNone
LanguageHaskell2010

JSONEncoder

Contents

Synopsis

Documentation

run :: Value a -> a -> Builder Source

Value

Object

Array

homo :: (forall a. (a -> b -> a) -> a -> c -> a) -> Value b -> Array c Source

A homogenous array.

hetero :: Hetero a -> Array a Source

A heterogenous array encoder.

Hetero