-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Tiny dotenv library -- -- Loading secrets and confidential configuration values is a software -- architectural practice. This library enables that with a tiny -- dependency footprint. @package dotenv-micro @version 0.1.0.0 -- | 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 KEYs 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. module DotEnv.Micro -- | Load, parse and apply a .env file -- -- NB : does not overwrite any preexisting env vars. -- -- NB2 : if the given .env file is not found or cannot be parsed -- the program crashes with fail. loadDotEnv :: MonadIO m => Maybe FilePath -> m ()