in the GHCi prompt, print ModuleNames not Modules
authorSimon Marlow <simonmar@microsoft.com>
Wed, 23 Aug 2006 09:52:58 +0000 (09:52 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 23 Aug 2006 09:52:58 +0000 (09:52 +0000)
compiler/ghci/InteractiveUI.hs

index 8a20fb1..cac385b 100644 (file)
@@ -485,8 +485,8 @@ mkPrompt toplevs exports prompt
         f (x:xs) = char x <> f xs
         f [] = empty
     
-        perc_s = hsep (map (\m -> char '*' <> pprModule m) toplevs) <+>
-                 hsep (map pprModule exports)
+        perc_s = hsep (map (\m -> char '*' <> ppr (GHC.moduleName m)) toplevs) <+>
+                 hsep (map (ppr . GHC.moduleName) exports)
              
 
 #ifdef USE_READLINE