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],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log
Dependencies base (>=4.5 && <5.0), base-compat (>=0.4), megaparsec (>=4.2.0 && <4.5.0), optparse-applicative (>=0.11 && <0.13), process, text [details]
License MIT
Copyright 2015-2016 Stack Builders Inc.
Author Justin Leitgeb
Category Configuration
Home page
Bug tracker
Source repo head: git clone
Uploaded by jsl at Sun Mar 20 04:57:22 UTC 2016
Distributions LTSHaskell:, NixOS:, Stackage:
Executables dotenv
Downloads 10889 total (590 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-03-20 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees