configurator-ng-0.0.0.1: The next generation of configuration management

Copyright | (c) 2016 Leon P Smith
License | BSD3
Maintainer | Leon P Smith <leon@melding-monads.com>
Safe Haskell | None
Language | Haskell98

Data.Configurator.Config

Description

This module provides the abstract data structure that backs `ConfigCache` and that `ConfigParser`s operate on.

It shouldn't be necessary to use this module much, if at all, in client code. It might be considered semi-internal. Please file a issue if you find a need to use it.

Synopsis

- data Config
- empty :: Config
- null :: Config -> Bool
- lookup :: Name -> Config -> Maybe Value
- lookupWithName :: Name -> Config -> Maybe (Name, Value)
- subgroups :: Name -> Config -> [Name]
- subassocs :: Name -> Config -> [(Name, Value)]
- subassocs' :: Name -> Config -> [(Name, Value)]
- union :: Config -> Config -> Config
- subconfig :: Name -> Config -> Config
- superconfig :: Name -> Config -> Config

# Documentation

data Config #

A `Config` is a finite map from `Text` to `Value`.

empty :: Config #

null :: Config -> Bool #

lookup :: Name -> Config -> Maybe Value #

lookupWithName :: Name -> Config -> Maybe (Name, Value) #

subgroups :: Name -> Config -> [Name] #

subassocs :: Name -> Config -> [(Name, Value)] #

subassocs' :: Name -> Config -> [(Name, Value)] #

union :: Config -> Config -> Config #

subconfig :: Name -> Config -> Config #

superconfig :: Name -> Config -> Config #