dotenv: Loads environment variables from dotenv files

[ configuration, library, mit, program ] [ Propose Tags ]

In most applications, configuration should be separated from code. While it usually works well to keep configuration in the environment, there are cases where you may want to store configuration in a file outside of version control.

Dotenv files have become popular for storing configuration, especially in development and test environments. In Ruby, Python and Javascript there are libraries to facilitate loading of configuration options from configuration files. This library loads configuration to environment variables for programs written in Haskell.

To use, call loadFile from your application:

import Configuration.Dotenv
loadFile False "/my/dotenvfile"

This package also includes an executable that can be used to inspect the results of applying one or more Dotenv files to the environment, or for invoking your executables with an environment after one or more Dotenv files is applied.

See the Github page for more information on this package.

Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.1.0.7, 0.1.0.8, 0.1.0.9, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.1.0, 0.3.2.0, 0.3.3.0, 0.3.4.0, 0.4.0.0, 0.5.0.0, 0.5.0.1, 0.5.0.2, 0.5.1.0, 0.5.1.1, 0.5.2.0, 0.5.2.1, 0.5.2.2, 0.5.2.3, 0.5.2.4, 0.5.2.5, 0.6.0.1, 0.6.0.2, 0.6.0.3, 0.7.0.0, 0.8.0.0 (info)
Dependencies base (>=4.5 && <4.9), base-compat (>=0.4), optparse-applicative (==0.12.*), parsec (>=3.1.0 && <=3.2), process [details]
License MIT
Copyright 2015 Stack Builders Inc.
Author Justin Leitgeb
Maintainer justin@stackbuilders.com
Category Configuration
Home page https://github.com/stackbuilders/dotenv-hs
Bug tracker https://github.com/stackbuilders/dotenv-hs/issues
Source repo head: git clone git@github.com:stackbuilders/dotenv-hs.git
Uploaded by sestrella at Mon Jan 11 17:02:34 UTC 2016
Distributions LTSHaskell:0.8.0.0, NixOS:0.8.0.0, Stackage:0.8.0.0
Executables dotenv
Downloads 9935 total (393 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-11-28 [all 2 reports]

Modules

  • Configuration
    • Configuration.Dotenv
      • Configuration.Dotenv.Parse

Downloads

Maintainer's Corner

For package maintainers and hackage trustees