[Bug #131933] Wrong source location for deprecation warnings

noreply@sourceforge.net noreply@sourceforge.net
Tue, 20 Feb 2001 01:54:46 -0800


Bug #131933, was updated on 2001-Feb-11 13:58
Here is a current snapshot of the bug.

Project: The Glasgow Haskell Compiler
Category: Compiler
Status: Closed
Resolution: None
Bug Group: None
Priority: 5
Submitted by: spanne
Assigned to : nobody
Summary: Wrong source location for deprecation warnings

Details: 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.


Follow-Ups:

Date: 2001-Feb-20 01:54
By: simonpj

Comment:
Fixed
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=131933&group_id=8032