[ ghc-Bugs-1162969 ] Over-zealous dup-import warning
SourceForge.net
noreply at sourceforge.net
Tue Apr 12 19:06:20 EDT 2005
Bugs item #1162969, was opened at 2005-03-14 23:56
Message generated for change (Comment added) made by fergus
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1162969&group_id=8032
Category: Compiler
Group: None
Status: Open
Resolution: None
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 [john at repetae.net]
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: Fergus Henderson (fergus)
Date: 2005-04-13 09: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
More information about the Glasgow-haskell-bugs
mailing list