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

GHC ghc-devs at haskell.org
Tue Jun 6 11:08:38 UTC 2017


#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.html
 #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


More information about the ghc-tickets mailing list