[project @ 2005-06-21 10:30:41 by simonmar]
authorsimonmar <unknown>
Tue, 21 Jun 2005 10:30:41 +0000 (10:30 +0000)
committersimonmar <unknown>
Tue, 21 Jun 2005 10:30:41 +0000 (10:30 +0000)
we should be using PprTyThingInContext instead of PprTyThing here

ghc/compiler/ghci/InteractiveUI.hs

index 8ef6d69..76a80b5 100644 (file)
@@ -547,7 +547,7 @@ filterOutChildren names = filter (not . parent_is_there) names
         | otherwise                       = False
 
 pprInfo exts (thing, fixity, insts)
-  =  pprTyThingLoc exts thing 
+  =  pprTyThingInContextLoc exts thing 
   $$ show_fixity fixity
   $$ vcat (map GHC.pprInstance insts)
   where
@@ -890,7 +890,7 @@ browseModule m exports_only = do
         dflags <- getDynFlags
        let exts = dopt Opt_GlasgowExts dflags
        io (putStrLn (showSDocForUser unqual (
-               vcat (map (pprTyThing exts) (catMaybes things))
+               vcat (map (pprTyThingInContext exts) (catMaybes things))
           )))
        -- ToDo: modInfoInstances currently throws an exception for
        -- package modules.  When it works, we can do this: