aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Compiletime/Compat/Environment.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-09-19 22:30:44 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-09-25 13:11:28 +0200
commit373a468190a393fa2f7cf3851f1050dc6bf5bea1 (patch)
tree05521f97c93d84f0312326a36382278b479506a6 /CabalHelper/Compiletime/Compat/Environment.hs
parent553bb98636c124f301fc705b09313b26fd3f080c (diff)
Fix CH.C.C.Environment on Prelude without '<$>'
Diffstat (limited to 'CabalHelper/Compiletime/Compat/Environment.hs')
-rw-r--r--CabalHelper/Compiletime/Compat/Environment.hs2
1 files changed, 1 insertions, 1 deletions
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)