Copyright | Copyright 2022 Shea Levy. |
---|---|
License | Apache-2.0 |
Maintainer | shea@shealevy.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- compile :: Quote m => SelectorSpec -> m [Dec]
Documentation
compile :: Quote m => SelectorSpec -> m [Dec] Source #
Compile a SelectorSpec
to type definitions, with a DefaultRenderSelectorJSON
instance.
Assumes leaf types (i.e., those in SimpleType
or a FieldConstructorSpec
) are ToJSON
, and
that Inject
ed selectors have a DefaultRenderSelectorJSON
instance.