conferer-0.4.0.0: Configuration management library

Safe HaskellSafe
LanguageHaskell2010

Conferer.Source.Mapping

Contents

Synopsis

Namespaced higher-order source

This source takes a source and returns a new source that always transforms the key according to either a function for mkMappingSource' or a Map for mkMappingSource

mkMappingSource :: Map Key Key -> SourceCreator -> SourceCreator Source #

Create a SourceCreator using a Map Key Key to transform the supplied keys and another SourceCreator

mkMappingSource' :: (Key -> Maybe Key) -> SourceCreator -> SourceCreator Source #

Create a SourceCreator using a function to transform the supplied keys and another SourceCreator