Warning not showing up when deprecated variable is explicitly imported
In the case below a deprecation warning does not show up.
{- ModuleA -}
module ModuleA where
{-# DEPRECATED func "func is deprecated" #-}
func :: Int
func = 42
{- ModuleB -}
module ModuleB where
import ModuleA(func)
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |