From 373a468190a393fa2f7cf3851f1050dc6bf5bea1 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 19 Sep 2017 22:30:44 +0200 Subject: Fix CH.C.C.Environment on Prelude without '<$>' --- CabalHelper/Compiletime/Compat/Environment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CabalHelper/Compiletime/Compat/Environment.hs b/CabalHelper/Compiletime/Compat/Environment.hs index 15cf05a..916f782 100644 --- a/CabalHelper/Compiletime/Compat/Environment.hs +++ b/CabalHelper/Compiletime/Compat/Environment.hs @@ -3,4 +3,4 @@ module CabalHelper.Compiletime.Compat.Environment where import System.Environment lookupEnv :: String -> IO (Maybe String) -lookupEnv var = lookup var <$> getEnvironment +lookupEnv var = do env <- getEnvironment; return (lookup var env) -- cgit v1.2.3