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.16) [details]
License BSD-3-Clause
Author Dmitry Dzhus
Category Template Haskell
Home page
Bug tracker
Source repo head: git clone
Uploaded by DmitryDzhus at Fri Feb 21 16:48:45 UTC 2020
Distributions NixOS:
Downloads 413 total (95 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 2020-02-21 [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")