conferer-hspec-0.1.0.2: conferer's FromConfig instances for hspec Config

Safe HaskellNone
LanguageHaskell2010

Conferer.FetchFromConfig.Hspec

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 Config Source # 
    Instance details

    Methods

    fetch :: Key -> Config0 -> IO (Either Text Config) #

    FetchFromConfig ColorMode Source # 
    Instance details

    Methods

    fetch :: Key -> Config -> IO (Either Text ColorMode) #

    FetchFromConfig Formatter Source # 
    Instance details

    Methods

    fetch :: Key -> Config -> IO (Either Text Formatter) #