[project @ 2005-01-28 17:44:55 by simonpj]
authorsimonpj <unknown>
Fri, 28 Jan 2005 17:45:03 +0000 (17:45 +0000)
committersimonpj <unknown>
Fri, 28 Jan 2005 17:45:03 +0000 (17:45 +0000)
commitc51fdf4422e1c45aa99e0151c2ac1132cecea128
tree53a0a466ab1b393f6b5fb55dd928153337dc0027
parent550efe6e5026b3b9b5681782a1518b9c2c6aca87
[project @ 2005-01-28 17:44:55 by simonpj]
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.
ghc/compiler/basicTypes/SrcLoc.lhs
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/iface/IfaceSyn.lhs
ghc/compiler/iface/IfaceType.lhs
ghc/compiler/iface/LoadIface.lhs
ghc/compiler/iface/MkIface.lhs
ghc/compiler/iface/TcIface.lhs
ghc/compiler/typecheck/TcRnDriver.lhs