@hackage th-env0.1.1

Template Haskell splices that expand to an environment variable

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