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