Location of the default config file.
Moduleyesod-1.6.2.1Haskell2010
Yesod.Default.Config2
Some next-gen helper functions for the scaffolding's configuration system.
- 2 types
- 16 values
- Packageyesod-1.6.2.1
- Exports18
- LanguageHaskell2010
- LicenceMIT
- SourceConfig2.hs
Locally defined
4 declarationsHelper for getApplicationDev in the scaffolding. Looks up PORT and DISPLAY_PORT and prints appropriate messages.
Helper for develMain in the scaffolding.
Re-exports from Data.Yaml.Config
11 declarationsA convenience wrapper around applyEnvValue and getCurrentEnv
Get the actual environment as a HashMap from Text to Text.
applyEnvValue Override environment variable placeholders in the given Value with
values from the environment.
If the first argument is True, then all placeholders _must_ be provided by
the actual environment. Otherwise, default values from the Value will be
used.
loadYamlSettings Load the settings from the following three sources:
Run time config files
Run time environment variables
The default compile time config file
For example, to load up settings from config/foo.yaml and allow overriding
from the actual environment, you can use:
loadYamlSettings ["config/foo.yaml"] [] useEnvloadYamlSettingsArgs Same as loadYamlSettings, but get the list of runtime config files from
the command line arguments.
Defines how we want to use the environment variables when loading a config file. Use the smart constructors provided by this module.
Do not use any environment variables, instead relying on defaults values in the config file.
Use environment variables when available, otherwise use defaults.
Do not use default values from the config file, but instead take all overrides from the environment. If a value is missing, loading the file will throw an exception.
Same as useEnv, but instead of the actual environment, use the provided
HashMap as the environment.
Same as requireEnv, but instead of the actual environment, use the
provided HashMap as the environment.
For backwards compatibility
3 declarationsConstructors
Instances1Semigroup
Semigroup MergedValueDefined in yesod-1.6.2.1 · Yesod.Default.Config2
loadAppSettings Deprecated. Use loadYamlSettings
Load the settings from the following three sources:
Run time config files
Run time environment variables
The default compile time config file
loadAppSettingsArgs Deprecated. Use loadYamlSettingsArgs
Same as loadAppSettings, but get the list of runtime config files from
the command line arguments.