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.3
LTS Haskell 22.17:0.1.1
Stackage Nightly 2024-04-14: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.3@sha256:3804eeff3edf8b4c3c6ca68a8b4eff3bf23c07c468c699e3f010c4dec1603830,1386

Module documentation for 0.1.0.3

Used by 1 package in lts-18.28(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.3 - 2021-11-05

Changed

  • #2 GHC 9.x / template-haskell-2.17 support

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