th-env

Template Haskell splice that expands to an environment variable https://github.com/dzhus/th-env#readme

Stackage Nightly 2020-04-10:0.1.0.1
Latest on Hackage:0.1.0.1

See all snapshots th-env appears in

BSD-3-Clause licensed by Dmitry Dzhus
Maintained by [email protected]

Module documentation for 0.1.0.1

This version can be pinned in stack with:[email protected]:960423c1951e3c36ba62d5286c7fa859095d41a309c4ea13c2d90abfe5d35bca,1171

th-env

Travis CI build status 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.1 - 2020-02-21

Changed

  • Dependencies bump

0.1.0.0 - 2019-05-01