snap-loader-static-1.0.0.1: Snap static loader

Safe HaskellNone
LanguageHaskell2010

Snap.Loader.Static

Synopsis

Documentation

loadSnapTH :: Q Exp -> Name -> [String] -> Q Exp Source #

This function provides a non-magical type-compatible loader for the one in snap-dynamic's Snap.Loader.Devel, allowing switching one import to provide production-mode compilation.

This could be considered a TH wrapper around a function

loadSnap :: Typeable a => IO a -> (a -> IO (Snap (), IO ()))
                       -> [String] -> IO (a, Snap (), IO ())

The third argument is unused, and only present for type-compatibility with Snap.Loader.Devel