[GHC] #13791: Document allowed syntax in WARNING and DEPRECATED pragmas

#13791: Document allowed syntax in WARNING and DEPRECATED pragmas -------------------------------------+------------------------------------- Reporter: phischu | Owner: (none) Type: bug | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Documentation Unknown/Multiple | bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- GHC accepts the following deprecation pragma: {{{#!hs {-# DEPRECATED f ["f is deprecated","use g instead"] #-} f :: a -> a f x = x }}} The deprecation message here is a list of strings. I didn't expect this to be allowed because [https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts... #warning-and-deprecated-pragmas] only shows examples where the deprecation message is a single string. Are there other forms of deprecation message allowed by GHC? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13791 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13791: Document allowed syntax in WARNING and DEPRECATED pragmas
-------------------------------------+-------------------------------------
Reporter: phischu | Owner: (none)
Type: bug | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 8.0.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#13791: Document allowed syntax in WARNING and DEPRECATED pragmas -------------------------------------+------------------------------------- Reporter: phischu | Owner: (none) Type: bug | Status: closed Priority: lowest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13791#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13791: Document allowed syntax in WARNING and DEPRECATED pragmas -------------------------------------+------------------------------------- Reporter: phischu | Owner: (none) Type: bug | Status: closed Priority: lowest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Merged to `ghc-8.2` as d8794aa582687846178a0b11604b736212cbf936. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13791#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC