Safe Haskell | None |
---|
Documentation
data Declaration Source
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. |
Comment Text | Comment text |
Eq Declaration | |
Data Declaration | |
Show Declaration | |
Typeable Declaration | |
(Monoid Code, Monad (CodeGenM s)) => MonadWriter Code (CodeGenM s) |
type Code = [Declaration]Source
Haskell code (without module declaration and imports)
generate :: Graph Schema Text -> Q (Code, Map Text Name)Source
Generate a generalized representation of the code in a Haskell module