include-env 0.1.2.0 → 0.1.3.0
raw patch · 3 files changed
+6/−18 lines, 3 filesdep −include-envdep ~basePVP ok
version bump matches the API change (PVP)
Dependencies removed: include-env
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- app/Main.hs +0/−6
- include-env.cabal +2/−10
- src/IncludeEnv/TH.hs +4/−2
− app/Main.hs
@@ -1,6 +0,0 @@-module Main where--main :: IO ()-main = putStrLn "include-env"--
include-env.cabal view
@@ -1,7 +1,7 @@ name: include-env-version: 0.1.2.0+version: 0.1.3.0 synopsis: Include the value of an environment variable at compile time-description: Embed secrets (e.g. API keys) inside production artifacts without checking them into the repository.+description: Embed secrets (e.g. API keys) inside production artifacts at compile time. homepage: https://github.com/unfoldml/include-env license: BSD3 license-file: LICENSE@@ -21,14 +21,6 @@ exposed-modules: IncludeEnv.TH build-depends: base >= 4.7 && < 5 , template-haskell >= 2.14--executable include-env- default-language: Haskell2010- ghc-options: -threaded -rtsopts -with-rtsopts=-N- hs-source-dirs: app- main-is: Main.hs- build-depends: base- , include-env source-repository head type: git
src/IncludeEnv/TH.hs view
@@ -29,9 +29,11 @@ import Language.Haskell.TH.Lib (valD) --- | Include the value of an environment variable at compile time+-- | Include the value of an environment variable at compile time. ----- A fresh variable is declared each time this is computation is evaluated+-- A fresh variable of type `String` is declared each time this is computation is evaluated.+--+-- Note : will crash with `error` if the environment variable is not found. includeEnv :: String -- ^ name of environment variable to be looked up -> String -- ^ name of new value -> Q [Dec]