dotenv: Loads environment variables from dotenv files
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 defaultConfig
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.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
static | Creates static binary. | Disabled |
dev | Turn on development settings. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- dotenv-0.12.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 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, 0.8.0.1, 0.8.0.2, 0.8.0.3, 0.8.0.4, 0.8.0.6, 0.8.0.7, 0.9.0.0, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.11.0.0, 0.11.0.1, 0.11.0.2, 0.12.0.0 (info) |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.14 && <5.0), base-compat (>=0.4), containers, data-default-class (>=0.1.2 && <0.2), directory, dotenv, exceptions (>=0.8 && <0.11), megaparsec (>=7.0.1 && <10.0), mtl (>=2.2.2 && <2.4), optparse-applicative (>=0.11 && <0.19), process (>=1.6.3.0 && <1.7), shellwords (>=0.1.3.0), text [details] |
Tested with | ghc ==8.10, ghc ==9.0, ghc ==9.2, ghc ==9.4, ghc ==9.6 |
License | MIT |
Copyright | 2015-Present Stack Builders Inc. |
Author | Justin Leitgeb |
Maintainer | hackage@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 camm at 2024-02-03T02:14:29Z |
Distributions | LTSHaskell:0.11.0.2, NixOS:0.11.0.2, Stackage:0.12.0.0 |
Reverse Dependencies | 6 direct, 2 indirect [details] |
Executables | dotenv |
Downloads | 31021 total (231 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-02-03 [all 1 reports] |