Ticket #657 (closed task: fixed)

Opened 7 years ago

Last modified 4 years ago

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

Changed 7 years ago by simonpj

This could be easily done if we can agree about what we want.

Should "WARNING" be "WARN_USE" or "WARN_USE_OF" or "WARN_AT_USE" or something like that? Something more self explanatory.

(Or use hyphens? "WARN-USE" or "WARN-USE-OF" etc.)

Then DEPRECATED becomes "WARN-USE" with an automatic prefix "x is deprecated.". Right?

Changed 7 years ago by igloo

  • testcase set to N/A
  • milestone set to 6.6.1

Changed 7 years ago by simonmar

  • milestone changed from 6.6.1 to 6.8

Changed 6 years ago by guest

  • cc Bulat.Ziganshin@… added

Changed 6 years ago by simonmar

  • owner set to igloo
  • milestone changed from 6.8 branch to 6.10 branch

Changed 5 years ago by igloo

  • milestone changed from 6.10 branch to 6.10.1

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

WARNING pragma added

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.