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]

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 [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 2020-06-03T23:22:42Z
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 3606 total (106 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 2020-06-04 [all 1 reports]

Readme for th-env-0.1.0.2

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