Multiple declaration error shown multiple times
Given the file:
foo = 1
a = ()
foo = 1
b = ()
foo = 1
You get the error message:
Uniplate.hs:3:0:
Multiple declarations of `Main.foo'
Declared at: Uniplate.hs:1:0
Uniplate.hs:3:0
Uniplate.hs:5:0:
Multiple declarations of `Main.foo'
Declared at: Uniplate.hs:1:0
Uniplate.hs:5:0
Instead of the much simpler:
Uniplate.hs:5:0:
Multiple declarations of `Main.foo'
Declared at: Uniplate.hs:1:0
Uniplate.hs:3:0
Uniplate.hs:5:0
This also happens with multiple class definitions, but if you give multiple type signatures then the error message is properly merged.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |