[GHC] #5998: GHCi's :info to return all the visible instances, not just the ones imported from currently loaded files
GHC
cvs-ghc at haskell.org
Mon Apr 16 11:14:19 CEST 2012
#5998: GHCi's :info to return all the visible instances, not just the ones
imported from currently loaded files
---------------------------------+------------------------------------------
Reporter: errge | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.4.1
Keywords: ghci :info | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by simonmar):
FYI, the commit that last changed this was
commit b0d80aa3d908a6b9991920a5ac7fd1b437ecafd3
{{{
Author: simonpj at microsoft.com <unknown>
Date: Sat Aug 4 17:35:39 2007 +0000
In GHCi, filter instances by what is in scope, not just by what is in
scope unqualified
Trac #1581 was doing too much filtering; it even filtered out intances
defined in this very module! The new rule shows more instances, but
hopefully not to many.
}}}
I like the suggestion in comment:2. Maybe this:
{{{
-- 32 other instances exist, but involve types that are not in scope.
-- Use :info! to see all instances.
}}}
Furthermore I have moved the filtering out of TcRnDriver (where it
does
not belong) to InteractiveEval. And I've added a note to the
documentation.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5998#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list