aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-09-25 13:53:00 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-09-25 13:53:00 +0200
commitebe84d580e5f9897b312d7e6748341331e4c4863 (patch)
tree04344373631f927511aa85b3954d504f1d768eda
parent06f2ac654e29335e522b02fb53369d774039bad6 (diff)
Make debugging env var name consistent
-rw-r--r--CabalHelper/Compiletime/Wrapper.hs2
-rw-r--r--CabalHelper/Runtime/Main.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/CabalHelper/Compiletime/Wrapper.hs b/CabalHelper/Compiletime/Wrapper.hs
index 0efe8ae..6713944 100644
--- a/CabalHelper/Compiletime/Wrapper.hs
+++ b/CabalHelper/Compiletime/Wrapper.hs
@@ -112,7 +112,7 @@ guessProgramPaths opts = do
overrideVerbosityEnvVar :: Options -> IO Options
overrideVerbosityEnvVar opts = do
- x <- lookup "GHC_MOD_DEBUG" <$> getEnvironment
+ x <- lookup "CABAL_HELPER_DEBUG" <$> getEnvironment
return $ case x of
Just _ -> opts { verbose = True }
Nothing -> opts
diff --git a/CabalHelper/Runtime/Main.hs b/CabalHelper/Runtime/Main.hs
index c7f6652..8895069 100644
--- a/CabalHelper/Runtime/Main.hs
+++ b/CabalHelper/Runtime/Main.hs
@@ -183,7 +183,7 @@ main = do
[cfile] <- filter isCabalFile <$> getDirectoryContents projdir
- v <- maybe silent (const deafening) . lookup "GHC_MOD_DEBUG" <$> getEnvironment
+ v <- maybe silent (const deafening) . lookup "CABAL_HELPER_DEBUG" <$> getEnvironment
lbi <- unsafeInterleaveIO $ getPersistBuildConfig distdir
gpd <- unsafeInterleaveIO $ readPackageDescription v (projdir </> cfile)
let pd = localPkgDescr lbi