Ticket #5868 (closed bug: wontfix)
Wrong error messages with qualified imports
| Reported by: | SimonHengel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Compiler | Version: | 7.4.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
