restful-snap-0.1.1.1
Snap.Restful.TH
Synopsis
nameCons :: Name -> Q [Con]Source
Gets a list of constructors for a Name.
decCons :: Dec -> Q [Con]Source
Gets a list of constructors for a Dec.
typeCons :: Type -> Q [Con]Source
Gets a list of constructors for a Type.
deriveHasFormlet :: Name -> Q [Dec]Source
Derives a HasFormlet instance for a data type.
iSplices :: Name -> Q ExpSource
Generates interpreted splices for a data type. All of the data type's fields must be instances of the PrimSplice type class.
Usage:
fooSplices :: Monad m => Foo -> [(Text, I.Splice m)] fooSplices = $(iSplices ''Foo)
cSplices :: Name -> Q ExpSource
Generates compiled splices for a data type. All of the data type's fields must be instances of the PrimSplice type class.
fooSplices = $(cSplices ''Foo)