-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Include the value of an environment variable at compile time -- -- Embed secrets (e.g. API keys) inside production artifacts without -- checking them into the repository. @package include-env @version 0.1.2.0 -- | Include the value of an environment variable in the binary at compile -- time. -- --

Rationale

-- -- Users might want to embed secrets (e.g. API keys, database connection -- strings) inside production artifacts without checking these into the -- repository. -- --

Example

-- --
--   import IncludeEnv.TH (includeEnv)
--   
--   $(includeEnv "SHELL" "shl")
--   shl :: String
--   
--   main :: IO ()
--   main = putStrLn $ unwords ["your current shell :", shl]
--   
module IncludeEnv.TH -- | Include the value of an environment variable at compile time -- -- A fresh variable is declared each time this is computation is -- evaluated includeEnv :: String -> String -> Q [Dec]