Don't show the loaded packages in ":show packages"; fixes #4300
authorIan Lynagh <igloo@earth.li>
Thu, 30 Sep 2010 21:01:28 +0000 (21:01 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 30 Sep 2010 21:01:28 +0000 (21:01 +0000)
It's never worked properly, and the information is in ":show linker".

ghc/InteractiveUI.hs

index 2e4f80b..c457d8a 100644 (file)
@@ -1645,11 +1645,6 @@ showPackages = do
   io $ putStrLn $ showSDoc $ vcat $
     text ("active package flags:"++if null pkg_flags then " none" else "")
     : map showFlag pkg_flags
-  pkg_ids <- fmap (preloadPackages . pkgState) getDynFlags
-  io $ putStrLn $ showSDoc $ vcat $
-    text "packages currently loaded:" 
-    : map (nest 2 . text . packageIdString) 
-               (sortBy (compare `on` packageIdFS) pkg_ids)
   where showFlag (ExposePackage p) = text $ "  -package " ++ p
         showFlag (HidePackage p)   = text $ "  -hide-package " ++ p
         showFlag (IgnorePackage p) = text $ "  -ignore-package " ++ p