[GHC] #9756: Warn about unnecessary unsafeCoerce

GHC ghc-devs at haskell.org
Mon Nov 3 15:14:32 UTC 2014


#9756: Warn about unnecessary unsafeCoerce
-------------------------------------+-------------------------------------
              Reporter:  dfeuer      |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.9
             Component:  Compiler    |         Keywords:
  (Type checker)                     |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:
       Type of failure:              |
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 I would tend to think it should be opt-in anyways, at least for a couple
 compiler versions, since it would just annoy people who want to support
 those older compiler versions without `coerce`.

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


More information about the ghc-tickets mailing list