Ticket #657 (closed task: fixed)
add WARNING pragma
| Reported by: | ijones | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.1 |
| Component: | Compiler | Version: | 6.4.1 |
| Keywords: | Cc: | Bulat.Ziganshin@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | N/A | Blocked By: | |
| Blocking: | Related Tickets: |
Description
It might be nice to have a WARNING pragma in place of or in addition to the DEPRECATED pragma that just allows you to issue a generic warning:
{-# WARNING f, C, T "These are deprecated" #-}
{-# WARNING g "This has terrible performance" #-}
{-# WARNING T "We had to expose this type for bad reasons, don't use it." #-}
{-# WARNING preConf "This is an unstable interface. May become deprecated." #-}
{-# WARNING fromJust "Calls the error function. use maybe for safety" #-}
module Wibble {-# WARNING "Use Wibble_1 instead" #-}
This is more general than the DEPRECATED pragma.
Change History
Note: See
TracTickets for help on using
tickets.
