Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- rdrop :: Int -> [a] -> [a]
- makeSingletonFromJSON :: Name -> Name -> [Name] -> Q [Dec]
- makeRegHelper :: Name -> DecsQ
- lspOptions :: Options
- lspOptionsUntagged :: Options
Documentation
makeSingletonFromJSON :: Name -> Name -> [Name] -> Q [Dec] Source #
Given a wrapper and a singleton GADT, construct FromJSON instances for each constructor return type by invoking the FromJSON instance for the wrapper and unwrapping
makeRegHelper :: Name -> DecsQ Source #
lspOptions :: Options Source #
Standard options for use when generating JSON instances NOTE: This needs to be in a separate file because of the TH stage restriction
lspOptionsUntagged :: Options Source #
Standard options for use when generating JSON instances for an untagged union