| Copyright | Copyright 2022 Shea Levy. |
|---|---|
| License | Apache-2.0 |
| Maintainer | shea@shealevy.com |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Observe.Event.Render.JSON.DSL.Compile
Description
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 Injected selectors have a DefaultRenderSelectorJSON instance.