[GHC] #15910: GHC missreports import as redundant.

#15910: GHC missreports import as redundant. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- In the following code GHC claims the first import is redundant. {{{ import Data.Map (Map) import qualified Data.Map as M type MT = Map }}} {{{ test.hs:5:1: warning: [-Wunused-imports] The qualified import of `Data.Map' is redundant except perhaps to import instances from `Data.Map' To import instances alone, use: import Data.Map() | 5 | import qualified Data.Map as M }}} Reproduceable on 8.4 and HEAD at least. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15910 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15910: GHC missreports import as redundant. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by monoidal): I think GHC is correct. The error is pointing at the second import, which is redundant: {{{ | 5 | import qualified Data.Map as M }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15910#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15910: GHC missreports import as redundant. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by AndreasK): * status: new => closed * resolution: => invalid Comment: I think you are right, my bad. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15910#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC