conferer-1.0.0.1: 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.Namespaced

Description

Source that namespaces an inner source

Synopsis

Documentation

data NamespacedSource Source #

This source takes a source and returns a new source that always checks that the Key given always starts with certain Key and then strips that prefix before consulting its inner Source

Constructors

NamespacedSource 

fromConfig :: Key -> SourceCreator -> SourceCreator Source #

Create a SourceCreator from a prefix and another SourceCreator

fromInner :: Key -> Source -> Source Source #

Create a Source from a prefix and another Source