#2995: ghc -Wall does not complain about unnecessary data constructor imports
-----------------------------+----------------------------------------------
Reporter:  EyalLotem         |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  minor           
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 If it is enough to import:

 import SomeModule(SomeType)

 Then ghc should complain (warn) when importing:

 import SomeModule(SomeType(..))

 or:

 import SomeModule(SomeType(SomeConstructor))

 But it doesn't output any complaint or warning.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2995>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to