configuration-tools-0.2.13: Tools for specifying and parsing configurations

CopyrightCopyright © 2015 PivotCloud, Inc.
LicenseMIT
MaintainerLars Kuhtz <lkuhtz@pivotmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Configuration.Utils.Internal.ConfigFileReader

Contents

Description

 

Synopsis

Documentation

parseConfigFiles Source

Arguments

:: (ConfigFileParser μ, FromJSON (α -> α)) 
=> ConfigFilesConfig 
-> α

default configuration value

-> [ConfigFile]

list of configuration file paths

-> μ α 

readConfigFile Source

Arguments

:: (ConfigFileParser μ, FromJSON (α -> α)) 
=> ConfigFilesConfig 
-> ConfigFile

file path

-> μ (α -> α) 

Local Config Files

loadLocal Source

Arguments

:: (Functor μ, MonadIO μ, MonadError Text μ, FromJSON (α -> α)) 
=> ConfigFile

file path

-> μ (α -> α) 

Remote Config Files

loadRemote Source

Arguments

:: (ConfigFileParser μ, FromJSON (α -> α)) 
=> ConfigFilesConfig 
-> ConfigFile

URL

-> μ (α -> α) 

jsonMimeType :: IsString s => [s] Source

Defined in RFC 4627

contentType Source

Arguments

:: ByteString

value of an HTTP Content-Type header

-> ConfigFileFormat