#2995: ghc -Wall does not complain about unnecessary data constructor imports
---------------------------------+------------------------------------------
    Reporter:  EyalLotem         |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:  6.12 branch     
   Component:  Compiler          |      Version:  6.10.1          
    Severity:  minor             |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.12 branch

Old description:

> 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.

New description:

 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.

Comment:

 thanks for the report

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2995#comment:1>
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