summaryrefslogtreecommitdiff
path: root/ghc/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r--ghc/Main.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index d056bf97c4..2bb156c5b9 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -1,5 +1,5 @@
+{-# LANGUAGE CPP, NondecreasingIndentation #-}
{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-}
-{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
--
@@ -33,7 +33,7 @@ import InteractiveUI ( interactiveUI, ghciWelcomeMsg, defaultGhciSettings )
import Config
import Constants
import HscTypes
-import Packages ( dumpPackages )
+import Packages ( dumpPackages, simpleDumpPackages )
import DriverPhases
import BasicTypes ( failed )
import StaticFlags
@@ -209,8 +209,10 @@ main' postLoadMode dflags0 args flagWarnings = do
hsc_env <- GHC.getSession
---------------- Display configuration -----------
- when (verbosity dflags6 >= 4) $
- liftIO $ dumpPackages dflags6
+ case verbosity dflags6 of
+ v | v == 4 -> liftIO $ simpleDumpPackages dflags6
+ | v >= 5 -> liftIO $ dumpPackages dflags6
+ | otherwise -> return ()
when (verbosity dflags6 >= 3) $ do
liftIO $ hPutStrLn stderr ("Hsc static flags: " ++ unwords staticFlags)