| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.Aeson.Schema.CodeGen
Documentation
data Declaration Source
A top-level declaration.
Constructors
| Declaration Dec (Maybe Text) | Optional textual declaration. This can be used for information (e.g. inline comments) that are not representable in TH. |
| Comment Text | Comment text |
Instances
type Code = [Declaration] Source
Haskell code (without module declaration and imports)
generate :: Graph Schema Text -> Options -> Q (Code, Map Text Name) Source
Generate a generalized representation of the code in a Haskell module