Snap.Restful.TH
deriveHasFormlet :: Name -> Q [Dec] Source #
Derives a HasFormlet instance for a data type.
iSplices :: Name -> Q Exp Source #
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 Exp Source #
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)