#5868: Wrong error messages with qualified imports
------------------------------+---------------------------------------------
 Reporter:  SimonHengel       |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5868>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to