conferer-0.1.0.3: Configuration management library

Safe HaskellSafe
LanguageHaskell2010

Conferer.FetchFromConfig.Basics

Contents

Synopsis

Documentation

findKeyAndApplyConfig Source #

Arguments

:: FetchFromConfig newvalue 
=> Config

Complete config

-> Key

Key that indicates the part of the config that we care about

-> Key

Key that we use to find the config (usually concatenating with the other key)

-> (newvalue -> config -> config)

Function that knows how to use the value to update the config

-> Either Text config

Result of the last config updating

-> IO (Either Text config)

Updated config

Concatenate many transformations to the config based on keys and functions

Orphan instances

FetchFromConfig Bool Source # 
Instance details

Methods

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

FetchFromConfig Float Source # 
Instance details

Methods

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

FetchFromConfig Int Source # 
Instance details

Methods

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

FetchFromConfig Integer Source # 
Instance details

FetchFromConfig String Source # 
Instance details

Methods

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

FetchFromConfig ByteString Source # 
Instance details

FetchFromConfig Text Source # 
Instance details

Methods

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

FetchFromConfig a => FetchFromConfig (Maybe a) Source # 
Instance details

Methods

fetch :: Key -> Config -> IO (Either Text (Maybe a)) Source #