Location of shadowed binding is wrong in warning
If we have this module:
module Q where
z :: a
z = r
where
_a = 'a'
_f r = r
_b = 'b'
r = undefined
_c = 'c'
then the location of the shadowed r
is wrong (it's the same as the location of the one doing the shadowing):
$ ghc -fforce-recomp -Wall -c q.hs
q.hs:8:11:
Warning: This binding for `r' shadows the existing binding
bound at q.hs:8:11
In the definition of `_f'
- 8 is fine (it doesn't try to give the location).
Trac metadata
Trac field | Value |
---|---|
Version | 6.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |