duplicate import warning

John Meacham john at repetae.net
Thu Feb 17 02:38:56 EST 2005


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


-- 
John Meacham - ⑆repetae.net⑆john⑈ 


More information about the Glasgow-haskell-users mailing list