th-env: Template Haskell splices that expand to an environment variable

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

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

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,, 0.1.1
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 2022-05-23T21:04:04Z
Distributions Arch:0.1.1, Fedora:0.1.1, LTSHaskell:0.1.1, NixOS:0.1.1, Stackage:0.1.1
Reverse Dependencies 2 direct, 1 indirect [details]
Downloads 3727 total (93 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-05-23 [all 1 reports]

Readme for th-env-0.1.1

[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") ++ " in " ++ $$(envQ' "PWD")