A top-level declaration.
|Declaration Dec (Maybe Text)|
Optional textual declaration. This can be used for information (e.g. inline comments) that are not representable in TH.
Generate a generalized representation of the code in a Haskell module
|:: Graph Schema Text|
Set of schemas
|-> Q ([Dec], Map Text Name)|
Generated code and mapping from schema identifiers to type names
Generate data-types and FromJSON instances for all schemas