th-env

Template Haskell splice that expands to an environment variable

https://github.com/dzhus/th-env#readme

Version on this page:0.1.0.2
LTS Haskell 22.39:0.1.1
Stackage Nightly 2024-10-31:0.1.1
Latest on Hackage:0.1.1

See all snapshots th-env appears in

BSD-3-Clause licensed by Dmitry Dzhus
Maintained by [email protected]
This version can be pinned in stack with:th-env-0.1.0.2@sha256:d8f1f37f42a8f1a22404d7d0579528af18f5dac7232cca6bdbd5117c115a0ad5,1370

Module documentation for 0.1.0.2

Used by 1 package in lts-18.6(full list with versions):

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

Changes

Changelog

0.1.0.2 - 2020-06-03

Changed

  • Relaxed dependency version bounds

0.1.0.1 - 2020-02-21

Changed

  • Dependencies bump

0.1.0.0 - 2019-05-01