Wrong source location for deprecation warnings
Given the following module:
-------------------
import Int
main :: IO()
main = print (sizeofInt8 +
sizeofInt8)
-------------------
ghc-4.11 complains:
/usr/src/packages/BUILD/fptools/hslibs/lang/Int.hi:30:
Warning: Variable `sizeofInt8' is deprecated:
use Storable.sizeOf instead
Main.hs:4: and Main.hs:5: would be the right source locations, because the user wants to know the occurrences in his/her source, not a line number in an interface file. Note that the way deprecation warnings are currently handled one gets a *single* warning, instead of a warning for every occurence of a deprecated entity.
Trac metadata
| Trac field | Value |
|---|---|
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |