@@ -1,6 +1,13 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE OverloadedStrings #-}
3−-- | Some next-gen helper functions for the scaffolding's configuration system.
3+-- | Functionality for using YAML as configuration files
5+-- In particular, merging environment variables with yaml values
7+-- 'loadYamlSettings' is a high-level API for loading YAML and merging environment variables.
8+-- A yaml value of @_env:ENV_VAR:default@ will lookup the environment variable @ENV_VAR@.
10+-- On a historical note, this code was taken directly from the yesod web framework's configuration module.
4module Data.Yaml.Config
11module Data.Yaml.Config
5 ( applyCurrentEnv
12 ( applyCurrentEnv
6 , getCurrentEnv
13 , getCurrentEnv