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 [RSS] [faq],,,
Change log
Dependencies base (<5), template-haskell, th-compat [details]
License BSD-3-Clause
Author Dmitry Dzhus
Category Template Haskell
Home page
Bug tracker
Source repo head: git clone
Uploaded by DmitryDzhus at 2021-11-05T00:11:28Z
Distributions Arch:, LTSHaskell:, NixOS:, Stackage:
Downloads 1605 total (66 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-11-05 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for th-env-

[back to package description]


Build & test Hackage Hackage deps

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

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