[GHC] #11583: Make warning names more consistent

GHC ghc-devs at haskell.org
Tue Feb 16 11:40:59 UTC 2016


#11583: Make warning names more consistent
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:  8.2.1
          Component:  Compiler       |           Version:  7.10.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Sven Panne points out that current warning naming conventions used in GHC
 are rather inconsistent. Since we are moving away from `-fwarn-` to `-W`
 it would be nice if we could also try to fix up the names themselves.

 We do, however, want to make sure that transition isn't more
 painful for users than necessary. For instance, the user should be able
 to get useful feedback from the compiler on what warning flags have
 changed with `s/-fwarn-/-W/`

 To this end I recommend the following,

  * We write down a consistent vocabulary for warning flag names

  * We keep `-fwarn-` flags as they are currently

  * We keep the inconsistently named -W flags corresponding to these
    `-fwarn-` flags

  * We add consistently named `-W` flags alongside these

  * We set a timeline for deprecating the inconsistent forms (perhaps in
 three or four releases)

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11583>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list