Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- getKey :: Key -> Config -> IO (Either Text Text)
- getFromConfig :: FetchFromConfig a => Key -> Config -> IO a
- (/.) :: Key -> Key -> Key
- emptyConfig :: Config
- mkStandaloneProvider :: ProviderCreator -> IO Provider
- addProvider :: ProviderCreator -> Config -> IO Config
- unsafeGetKey :: Key -> Config -> IO Text
Documentation
getFromConfig :: FetchFromConfig a => Key -> Config -> IO a Source #
Fetch a value from a config key that's parsed using the FetchFromConfig instance.
This function throws an exception if the key is not found.
emptyConfig :: Config Source #
The empty configuration, this Config
is used as the base for
most config creating functions.
mkStandaloneProvider :: ProviderCreator -> IO Provider Source #
Instantiate a ProviderCreator
using the emptyConfig
addProvider :: ProviderCreator -> Config -> IO Config Source #