#2995: ghc -Wall does not complain about unnecessary data constructor imports
---------------------------------+------------------------------------------
Reporter: EyalLotem | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.12 branch
Component: Compiler | Version: 6.10.1
Severity: minor | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => fixed
Comment:
This module:
{{{
import Prelude (id)
import Data.Maybe (Maybe(Just))
f :: Maybe a -> Maybe a
f = id
}}}
now gives:
{{{
b.hs:3:0:
Warning: The import of `Just' from module `Data.Maybe' is redundant
}}}
in the HEAD.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2995#comment:2>
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