Package Info

ghc-dotenv


Loads environment variables from dotenv files


Development/Libraries/Haskell

In most applications, <http://12factor.net/config 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 <https://github.com/bkeepers/dotenv Ruby>, <https://github.com/theskumar/python-dotenv Python> and <https://www.npmjs.com/package/dotenv 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 <https://github.com/stackbuilders/dotenv-hs Github> page for more information on this package.


License: MIT
URL: https://hackage.haskell.org/package/dotenv

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3.4.0-bp150.2.3 info GA Release 2018-08-01 15
  • AArch64
  • ghc-dotenv
  • ghc-dotenv-devel
0.3.4.0-bp150.2.5 info GA Release 2018-07-31 15
  • ppc64le
  • ghc-dotenv
  • ghc-dotenv-devel
0.3.4.0-bp150.2.8 info GA Release 2018-07-30 15
  • x86-64
  • ghc-dotenv
  • ghc-dotenv-devel