Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Core interface for library provided configuration, basically consists of
getting a Key
and informing returning a maybe signaling the value and
if it's present in that specific provider
The way to index Provider
s, basically list of names that will be adapted
to whatever the provider needs
Core type that the user of this library interact with, in the future it may contain more this besides a list of providers
type ProviderCreator = Config -> IO Provider Source #
The type for creating a provider given a Config
, some providers require a
certain configuration to be initialized (for example: the redis provider
needs connection info to connect to the server)
class FetchFromConfig a where Source #
Main typeclass for defining the way to get values from config, hiding the
Text
based nature of the Provider
s
Here an error means that the value couldn't be parsed and that a reasonable default was not possible.