-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | The haskell application server stack + reload -- -- This library provides support for automatically recompiling and -- reloading modules into a running server. @package happstack-plugins @version 6.0.2 module Happstack.Plugins.LiftName liftName :: Name -> ExpQ liftOccName :: OccName -> ExpQ liftNameSpace :: NameSpace -> ExpQ liftPkgName :: PkgName -> ExpQ liftModName :: ModName -> ExpQ liftNameFlavour :: NameFlavour -> ExpQ module Happstack.Plugins.Static data PluginHandle PluginHandle :: PluginHandle -- | pretend to initialize the plugin system. This is provided so that you -- can easily switch between dynamic and static mode by only changing the -- imports via a CPP flag. initPlugins :: IO PluginHandle module Happstack.Server.Plugins.Static data PluginHandle -- | pretend to initialize the plugin system. This is provided so that you -- can easily switch between dynamic and static mode by only changing the -- imports via a CPP flag. initPlugins :: IO PluginHandle -- | A template haskell wrapper around withServerPart_. Usage: -- --
--   $(withServerPart 'symbol) pluginHandle $ \a -> ...
--   
withServerPart :: Name -> ExpQ -- | a static version of -- Happstack.Server.Plugins.Dynamic.withServerPart_ -- -- This function has the same signature as its dynamic sibling, but it -- does not do any fancy dynamic loading. It simply applies the function -- to the supplied value. -- -- This function exists so that you can that you can compile using -- dynamic plugins during development, but statically link the final -- build. -- -- Use a CPP to select between the Dynamic and Static versions of this -- module. withServerPart_ :: (MonadIO m, ServerMonad m, FilterMonad Response m, WebMonad Response m) => Name -> a -> PluginHandle -> (a -> m b) -> m b module Happstack.Plugins.Plugins rebuild :: PluginHandle -> FilePath -> Bool -> IO () func :: PluginHandle -> FilePath -> Symbol -> IO (Either Errors a) funcTH :: PluginHandle -> Name -> IO (Either Errors a) withIO :: PluginHandle -> Name -> (a -> IO ()) -> IO () newtype PluginHandle PluginHandle :: (INotify, MVar (Map FilePath ([WatchDescriptor], [FilePath], Maybe Errors, Map Symbol (FilePath -> IO (Either Errors (Module, Sym)), Either Errors (Module, Sym))))) -> PluginHandle module Happstack.Plugins.Dynamic newtype PluginHandle PluginHandle :: (INotify, MVar (Map FilePath ([WatchDescriptor], [FilePath], Maybe Errors, Map Symbol (FilePath -> IO (Either Errors (Module, Sym)), Either Errors (Module, Sym))))) -> PluginHandle -- | initialize the plugin system and return a PluginHandle initPlugins :: IO PluginHandle module Happstack.Server.Plugins.Dynamic data PluginHandle -- | initialize the plugin system and return a PluginHandle initPlugins :: IO PluginHandle -- | dynamically load the specified symbol pass it as an argument to the -- supplied server monad function. -- -- This is a wrapper aronud withServerPart_ which ensures the -- first and second argument stay in-sync. -- -- Usage: -- --
--   $(withServerPart 'symbol) pluginHandle $ \a -> ...
--   
withServerPart :: Name -> ExpQ -- | dynamically load the specified symbol pass it as an argument to the -- supplied server monad function. -- -- If something fails, this function will return '500 Internal Server -- Error' and a list of the errors encountered. -- -- see also: withServerPart withServerPart_ :: (MonadIO m, ServerMonad m, FilterMonad Response m, WebMonad Response m) => Name -> a -> PluginHandle -> (a -> m b) -> m b