id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
3419	"Incorrect ""unnecessary import"" warning"	NeilMitchell		"With the code:

{{{
{-# OPTIONS_GHC -Wall -fno-warn-missing-methods #-}
module Test where
import Data.Typeable
import Data.Data
data Test = Test
instance Typeable Test where
}}}

I get the warning:

{{{
    Warning: Module `Data.Typeable' is imported, but nothing from it is used
               except perhaps instances visible in `Data.Typeable'
             To suppress this warning, use: import Data.Typeable()
}}}

It seems like it's decided to pick up Typeable from Data.Data, but it's also available from Data.Typeable which would be a better choice. I'm not sure how this should be solved, but the current behaviour seems incorrect. Perhaps if two modules are imported, both of which export the same thing, they should both be allowed."	bug	closed	normal	6.12.1	Compiler	6.10.4	wontfix		ndmitchell@…	Unknown/Multiple	Unknown/Multiple	None/Unknown	Unknown				
