GHC missreports import as redundant.
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.6.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |