#4977: Warning about unqualified implicit imports
---------------------------------+------------------------------------------
    Reporter:  Lemming           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Compiler          |      Version:  7.0.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj):

 Hmm.  So what triggers the warning?  All your examples are for a module
 `Top.A`; would the warning happen if I say `import M`?  It seems odd if
 the module name is influential... and these days almost all module names
 have dots in them.

 Maybe you meant to warn of any import that brings into scope a bunch of
 unqualified names, unless they are explicitly enumerated. What about
 {{{
 import Top.A( T(..) )
 }}}
 Is that warned about too?  What is the general rule?

 Simon

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to