Copyright | Copyright © 2015 PivotCloud, Inc. |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lkuhtz@pivotmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- parseConfigFiles :: (ConfigFileParser μ, FromJSON (α -> α)) => ConfigFilesConfig -> α -> [ConfigFile] -> μ α
- readConfigFile :: (ConfigFileParser μ, FromJSON (α -> α)) => ConfigFilesConfig -> ConfigFile -> μ (α -> α)
- data ConfigFileFormat
- loadLocal :: (Functor μ, MonadIO μ, MonadError Text μ, FromJSON (α -> α)) => ConfigFile -> μ (α -> α)
- isRemote :: ConfigFile -> Bool
- loadRemote :: (ConfigFileParser μ, FromJSON (α -> α)) => ConfigFilesConfig -> ConfigFile -> μ (α -> α)
- yamlMimeType :: IsString s => [s]
- jsonMimeType :: IsString s => [s]
- contentType :: ByteString -> ConfigFileFormat
- requestHeaders :: Lens' Request RequestHeaders
Documentation
:: (ConfigFileParser μ, FromJSON (α -> α)) | |
=> ConfigFilesConfig | |
-> α | default configuration value |
-> [ConfigFile] | list of configuration file paths |
-> μ α |
:: (ConfigFileParser μ, FromJSON (α -> α)) | |
=> ConfigFilesConfig | |
-> ConfigFile | file path |
-> μ (α -> α) |
data ConfigFileFormat Source
Local Config Files
:: (Functor μ, MonadIO μ, MonadError Text μ, FromJSON (α -> α)) | |
=> ConfigFile | file path |
-> μ (α -> α) |
Remote Config Files
isRemote :: ConfigFile -> Bool Source
:: (ConfigFileParser μ, FromJSON (α -> α)) | |
=> ConfigFilesConfig | |
-> ConfigFile | URL |
-> μ (α -> α) |
yamlMimeType :: IsString s => [s] Source
jsonMimeType :: IsString s => [s] Source
Defined in RFC 4627
:: ByteString | value of an HTTP |
-> ConfigFileFormat |