id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
5868,Wrong error messages with qualified imports,SimonHengel,,"If the same identifier is imported qualified twice, then only the second qualified name is used in error messages.

Steps to reproduce:
{{{
module Foo where
import qualified Bar
import qualified SomeOtherModule
foo :: Integer
foo = Bar.bar
}}}
{{{
module Bar (bar) where
bar :: Int
bar = 23
}}}
{{{
module SomeOtherModule (bar) where
import Bar
}}}

expected result:
{{{
Foo.hs:5:7:
    Couldn't match expected type `Integer' with actual type `Int'
    In the expression: Bar.bar
    In an equation for `foo': foo = Bar.bar
}}}

actual result:
{{{
Foo.hs:5:7:
    Couldn't match expected type `Integer' with actual type `Int'
    In the expression: SomeOtherModule.bar
    In an equation for `foo': foo = SomeOtherModule.bar
}}}",bug,closed,normal,_|_,Compiler,7.4.1,wontfix,,,Unknown/Multiple,Unknown/Multiple,None/Unknown,Unknown,,,,
