diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2017-09-19 22:30:44 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2017-09-25 13:11:28 +0200 |
commit | 373a468190a393fa2f7cf3851f1050dc6bf5bea1 (patch) | |
tree | 05521f97c93d84f0312326a36382278b479506a6 /CabalHelper/Compiletime/Compat/Environment.hs | |
parent | 553bb98636c124f301fc705b09313b26fd3f080c (diff) |
Fix CH.C.C.Environment on Prelude without '<$>'
Diffstat (limited to 'CabalHelper/Compiletime/Compat/Environment.hs')
-rw-r--r-- | CabalHelper/Compiletime/Compat/Environment.hs | 2 |
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) |