#5867: Include use site of deprecated identifiers in deprecation warnings
------------------------------+---------------------------------------------
Reporter: SimonHengel | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Currently a deprecation warning reports the line of the import statement
that brings the deprecated identifier into scope. I think it would be
useful to print the line where the identifier is used, instead.
Steps to reproduce:
{{{
module Foo where
import Bar
foo = bar
}}}
{{{
module Bar where
bar = 23
{-# DEPRECATED bar "use baz instead" #-}
}}}
Expected result:
{{{
Foo.hs:3:1:
Warning: In the use of `bar'
(imported from Bar):
Deprecated: "use baz instead"
}}}
Actual result:
{{{
Foo.hs:2:1:
Warning: In the use of `bar'
(imported from Bar):
Deprecated: "use baz instead"
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5867>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs