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

Safe HaskellNone

Snap.Snaplet.Config

Synopsis

Documentation

newtype AppConfig Source

AppConfig contains the config options for command line arguments in snaplet-based apps.

Constructors

AppConfig 

appConfigTyCon :: TyConSource

The Typeable instance is here so Snap can be dynamically executed with Hint.

appOpts :: AppConfig -> [OptDescr (Maybe (Config m AppConfig))]Source

Command line options for snaplet applications.

commandLineAppConfig :: MonadSnap m => Config m AppConfig -> IO (Config m AppConfig)Source

Calls snap-server's extendedCommandLineConfig to add snaplet options to the built-in server command line options.