[GHC] #12574: Consistent use of sigs vs signatures in warnings

GHC ghc-devs at haskell.org
Wed Oct 5 12:36:22 UTC 2016


#12574: Consistent use of sigs vs signatures in warnings
-------------------------------------+-------------------------------------
        Reporter:  crockeea          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11583, #10752    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by martinceresa):

 The second problem it is more tricky because the warning message for the
 deprecated flags is give to the 'EwM monad' with (correct me if I am
 wrong) the 'deprecate' function. So we need to delay this action until we
 know if we are in a "-Wno" situation,.

 We can add a new String argument to the wWarningFlagsDeps, and something
 like this:
 {{{#!hs
 wWarningFlagsDeps :: String -> [(Deprecation, FlagSpec WarningFlag)]
 ...
 depFlagSpec "missing-local-sigs"       Opt_WarnMissingLocalSignatures
     "it is replaced by " ++ s ++ "missing-local-signatures"
 }}}

 And of course all the modifications implied.

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


More information about the ghc-tickets mailing list