snap-0.6.0.2: Snap: A Haskell Web Framework: project starter executable and glue code library

Snap.Loader.Prod

Synopsis

Documentation

loadSnapTH :: Q Exp -> Name -> [String] -> Q ExpSource

This function provides a non-magical type-compatible loader for the one in 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