Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Tiny library for handling environment variables stored in .env
files.
File format
.env
files are plain text UTF-8 files with rows of the form:
KEY=VALUE
The rows are separated by newline and the KEY
s must not contain any equal sign.
The VALUE
strings on the other hand can contain equal signs (the string is ingested up to the newline).
NB: Currently this library does not support variables.
Important
Add the paths of your .env
files to the .gitignore
file or equivalent, so that they are not checked into source control.
Synopsis
- loadDotEnv :: MonadIO m => Maybe FilePath -> m ()