dotenv-0.3.0.2: Loads environment variables from dotenv files

Copyright© 2015–2016 Stack Builders Inc.
LicenseMIT
MaintainerStack Builders <hackage@stackbuilders.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Configuration.Dotenv

Description

This module contains common functions to load and read dotenv files.

Synopsis

Documentation

load Source #

Arguments

:: Bool

Override existing settings?

-> [(String, String)]

List of values to be set in environment

-> IO () 

Loads the given list of options into the environment. Optionally override existing variables with values from Dotenv files.

loadFile Source #

Arguments

:: Bool

Override existing settings?

-> FilePath

A file containing options to load into the environment

-> IO () 

Loads the options in the given file to the environment. Optionally override existing variables with values from Dotenv files.

parseFile Source #

Arguments

:: FilePath

A file containing options to read

-> IO [(String, String)]

Variables contained in the file

Parses the given dotenv file and returns values without adding them to the environment.