th-env: Template Haskell splice that expands to an environment variable

[ bsd3, library, template-haskell ] [ Propose Tags ]

TH splice that expands to an environment variable value. Can be used to embed build-time parameters in your application.


[Skip to Readme]
Versions [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (<5), template-haskell (<2.15) [details]
License BSD-3-Clause
Author Dmitry Dzhus
Maintainer dima@dzhus.org
Category Template Haskell
Home page https://github.com/dzhus/th-env#readme
Bug tracker https://github.com/dzhus/th-env/issues
Source repo head: git clone https://github.com/dzhus/th-env
Uploaded by DmitryDzhus at Wed May 1 12:51:39 UTC 2019
Distributions NixOS:0.1.0.0
Downloads 51 total (21 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-05-01 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for th-env-0.1.0.0

[back to package description]

th-env

Travis CI build status Hackage Hackage deps

{-# LANGUAGE TemplateHaskell #-}
import Data.Maybe
import Language.Haskell.TH.Env

main :: IO ()
main = print $ "Running app compiled by " ++ fromMaybe "?" $$(envQ "USER")