simonpj 2005/01/28 09:45:06 PST
Modified files:
ghc/compiler/basicTypes SrcLoc.lhs
ghc/compiler/ghci InteractiveUI.hs
ghc/compiler/iface IfaceSyn.lhs IfaceType.lhs LoadIface.lhs
MkIface.lhs TcIface.lhs
ghc/compiler/typecheck TcRnDriver.lhs
Log:
Arrange that when seeking instance decls in GHCi, in response
to a :info command, we only print ones whose types are in scope
unqualified. This eliminates an alarmingly long list when
simply typing ':info Show', say.
On the way, I reorganised a bit. GHCi printing happens by
converting a TyThing to an IfaceDecl, and printing that.
I now arrange to generate unqualifed IfaceExtNames directly
during this conversion, based on what is in scope. Previously
it was done during the pretty-printing part via the UserStyle.
But this is nicer.
Revision Changes Path
1.29 +1 -1 fptools/ghc/compiler/basicTypes/SrcLoc.lhs
1.186 +13 -11 fptools/ghc/compiler/ghci/InteractiveUI.hs
1.17 +16 -29 fptools/ghc/compiler/iface/IfaceSyn.lhs
1.13 +18 -12 fptools/ghc/compiler/iface/IfaceType.lhs
1.25 +2 -2 fptools/ghc/compiler/iface/LoadIface.lhs
1.26 +19 -4 fptools/ghc/compiler/iface/MkIface.lhs
1.32 +4 -4 fptools/ghc/compiler/iface/TcIface.lhs
1.95 +20 -22 fptools/ghc/compiler/typecheck/TcRnDriver.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc