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

Conferer.Source.InMemory

Description

In memory source mostly used for testing

Synopsis

Documentation

newtype InMemorySource Source #

A Source mostly use for mocking which is configured directly using a Map

Constructors

InMemorySource 

Fields

fromConfig :: [(Key, Text)] -> SourceCreator Source #

Create a SourceCreator from a list of associations

fromMap :: Map Key Text -> Source Source #

Create a Source from a Map

fromAssociations :: [(Key, Text)] -> Source Source #

Create a Source from a list of associations