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],,
Change log
Dependencies base (<5), template-haskell (<2.15) [details]
License BSD-3-Clause
Author Dmitry Dzhus
Category Template Haskell
Home page
Bug tracker
Source repo head: git clone
Uploaded by DmitryDzhus at 2019-05-01T12:51:39Z
Distributions NixOS:
Downloads 616 total (132 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-05-01 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for th-env-

[back to package description]


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")