conferer-1.0.0.0: Configuration management library
Copyright(c) 2019 Lucas David Traverso
LicenseMPL-2.0
MaintainerLucas David Traverso <lucas6246@gmail.com>
Stabilityunstable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Conferer.Config.Internal.Types

Description

Core types for Config (here because of depedency cycles)

Synopsis

Documentation

data Config Source #

This type acts as the entry point for most of the library, it's main purpouse is to expose a uniform interface into multiple configuration sources (such as env vars, cli args, and many others including use defined ones using the Source interface)

Instances

Instances details
Show Config Source # 
Instance details

Defined in Conferer.Config.Internal.Types

data KeyLookupResult Source #

Result of a key lookup in a Config

Instances

Instances details
Show KeyLookupResult Source # 
Instance details

Defined in Conferer.Config.Internal.Types

type SourceCreator = Config -> IO Source Source #

The type for creating a source given a Config, some sources require a certain configuration to be initialized (for example: the redis source needs connection info to connect to the server)