[GHC] #2995: ghc -Wall does not complain about unnecessary data
constructor imports
GHC
trac at galois.com
Sun Feb 1 07:07:06 EST 2009
#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
More information about the Glasgow-haskell-bugs
mailing list