aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Compiletime/Compat/Environment.hs
blob: 916f782906972a3ae1c412cf5a952e92076a7cb1 (plain) (blame)
1
2
3
4
5
6
module CabalHelper.Compiletime.Compat.Environment where

import System.Environment

lookupEnv :: String -> IO (Maybe String)
lookupEnv var = do env <- getEnvironment; return (lookup var env)