restful-snap-0.4.2
Safe HaskellNone
LanguageHaskell2010

Snap.Restful.TH

Synopsis

Documentation

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.

Usage:

fooSplices = $(cSplices ''Foo)