| Copyright | © 2015–2016 Stack Builders Inc. |
|---|---|
| License | MIT |
| Maintainer | Stack Builders <hackage@stackbuilders.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Configuration.Dotenv
Description
This module contains common functions to load and read dotenv files.
Documentation
Arguments
| :: MonadIO m | |
| => Bool | Override existing settings? |
| -> [(String, String)] | List of values to be set in environment |
| -> m () |
Loads the given list of options into the environment. Optionally override existing variables with values from Dotenv files.
Arguments
| :: MonadIO m | |
| => Bool | Override existing settings? |
| -> FilePath | A file containing options to load into the environment |
| -> m () |
Loads the options in the given file to the environment. Optionally override existing variables with values from Dotenv files.
Arguments
| :: MonadIO m | |
| => FilePath | A file containing options to read |
| -> m [(String, String)] | Variables contained in the file |
Parses the given dotenv file and returns values without adding them to the environment.
Arguments
| :: MonadCatch m | |
| => m a | Action to perform that may fail because of missing file |
| -> m a | Action to perform if file is indeed missing |
| -> m a |
The helper allows to avoid exceptions in the case of missing files and perform some action instead.
Since: 0.3.1.0