derive-2.3.0.2: A program and library to derive instances for data types

Portabilityportable
Stabilityexperimental

Data.Derive.JSON

Description

Derive Text.JSON instances.

Unlike Text.JSON.Generics, single constructor types are not handled specially. Every value is encoded as an object with a single field, with the constructor name as key and the values as its contents.

If the constructor is a record, the contents is an Object with the field names as keys. Otherwise, the contents is an array.

Synopsis

Documentation