Bugs item #1162969, was opened at 2005-03-14 12:56 Message generated for change (Settings changed) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1162969&group_id=8032
Category: Compiler Group: None >Status: Closed >Resolution: Fixed Priority: 4 Submitted By: Simon Peyton Jones (simonpj) Assigned to: Simon Peyton Jones (simonpj) Summary: Over-zealous dup-import warning Initial Comment: Pointed out by John Meacham [EMAIL PROTECTED] In 6.4 the duplicate import warning seems to be triggered overzealously, even when one import is qualified and the other isn't. import qualified Data.Map import Data.Map(Map) foo :: Map Int Int foo = Data.Map.empty main = do print foo produces: Foo.hs:1:0: Warning: `Map' is imported more than once: imported from Data.Map at Foo.hs:3:16-18 imported from Data.Map at Foo.hs:2:0-24 ---------------------------------------------------------------------- >Comment By: Simon Peyton Jones (simonpj) Date: 2005-05-03 13:12 Message: Logged In: YES user_id=50165 OK, I've fixed this. I've changed the message to focus on each import and report if it is redundant; that is, is completely covered by another import. (Instead of reporting on some overlap, in a symmetrical way.) I hope this should be a big improvement; let me know if not. Simon ---------------------------------------------------------------------- Comment By: Fergus Henderson (fergus) Date: 2005-04-12 23:06 Message: Logged In: YES user_id=135331 Yes, this one is a pain -- it would be great if someone would fix this. The only work-around I have at the moment is to use "-Wall -fno-warn-unused-imports" instead of "-Wall". - Fergus Henderson. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1162969&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs