[GHC] #3464: Find import declaration importing a certain function

GHC trac at galois.com
Tue Sep 29 04:08:49 EDT 2009


#3464: Find import declaration importing a certain function
---------------------------------+------------------------------------------
    Reporter:  fasta             |        Owner:                  
        Type:  feature request   |       Status:  new             
    Priority:  normal            |    Milestone:  6.14 branch     
   Component:  GHCi              |      Version:  6.10.4          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by simonpj):

 The current behaviour of ":i" is this:
 {{{
 Prelude> :i map
 map :: (a -> b) -> [a] -> [b]   -- Defined in GHC.Base
 }}}
 I believe your suggestion is that you would like to see:
 {{{
 Prelude> :i map
 map :: (a -> b) -> [a] -> [b]   -- Defined in GHC.Base
                                 -- Imported from Prelude
 }}}
 The "Imported" info would specify which of the modules open in this
 session exports that entity.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3464#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list