Data.HighJson

A json specification for any type

data HighSpec a ty as

data SpecType

Construct specifications for records

recSpec

type RecordTypeSpec t flds

reqField

(.=)

optField

(.=?)

Construct specifications for sum types

sumSpec

type SumTypeSpec t flds

sumOpt

(.->)

Construct specifications for enum types

enumSpec

type EnumTypeSpec t flds

enumOpt

(@->)

Shared between specifications for simplicity

class IsDataSpec t

data a :& b

Generate json serializers/encoders and parsers from specs

jsonSerializer

jsonEncoder

jsonParser

Specification structures

data BodySpec ty a as

data RecordField t f

data RecordSpec a fs

data RecordFields t fs

data SumOption t o

data SumSpec a os

data SumOptions t os

data EnumOption t

data EnumSpec a

Aeson reexports

class ToJSON a

class FromJSON a

Implementation detail structures

data PhantomEnumContainer t ts

class CombinableContainer t