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

[ bsd3, library, template-haskell ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1
Change log CHANGELOG.md
Dependencies base (<5), template-haskell, th-compat [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 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 4505 total (102 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]

th-env

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