include-env-0.1.1.0: Include the value of an environment variable at compile time
Safe HaskellNone
LanguageHaskell2010

IncludeEnv.TH

Description

Include the value of an environment variable at compile time

Rationale

The first use case for this library is to embed secrets (e.g. API keys) inside production artifacts without checking them into the repository.

Synopsis

Documentation

includeEnv Source #

Arguments

:: String

name of environment variable to be looked up

-> String

name of new value

-> Q [Dec] 

Include the value of an environment variable at compile time

A fresh variable is declared each time this is computation is evaluated