Ticket #658 (closed bug: fixed)
DEPRECATED doesn't work for data constructors
| Reported by: | ijones | Owned by: | simonpj |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4.2 |
| Component: | Compiler | Version: | 6.4.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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'
Change History
Note: See
TracTickets for help on using
tickets.
