DEPRECATED doesn't work for data constructors
In trying to understand the documentation on pragmas I could not figure out where to place a pragma of the form:
{-# DEPRECATED f, C, T "Don't use these" #-}
for instance, in Distribution.Setup.hs, I tried to add:
{-# DEPRECATED CopyPrefix "Don't use this." #-}
data CopyDest
= NoCopyDest
| CopyTo FilePath
| CopyPrefix FilePath -- DEPRECATED
deriving (Eq, Show)
but got the error:
./Distribution/Setup.hs:172:15:
Not in scope: type constructor or class `CopyPrefix'
Trac metadata
Trac field | Value |
---|---|
Version | 6.4.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Documentation |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |