conferer-snap-0.2.0.0: conferer's FromConfig instances for snap Config

Safe HaskellNone
LanguageHaskell2010

Conferer.FetchFromConfig.Snap

Contents

Synopsis

    How to use this

    FetchFromConfig instance for snap server configuration

    import Conferer
    import Conferer.FetchFromConfig.Snap ()
    
    main = do
      config <- defaultConfig "awesomeapp"
      snapConfig <- getFromConfig "snap" config
    
    • Internal utility functions | These may be useful for someone but are subject to change at any point so use with care

    Orphan instances

    FetchFromConfig ConfigLog Source # 
    Instance details

    Methods

    fetch :: Key -> Config -> IO (Maybe ConfigLog) #

    (FetchFromConfig a, MonadSnap m) => FetchFromConfig (Config m a) Source # 
    Instance details

    Methods

    fetch :: Key -> Config0 -> IO (Maybe (Config m a)) #

    MonadSnap m => DefaultConfig (Config m a) Source # 
    Instance details

    Methods

    configDef :: Config m a #