[GHC] #9756: Warn about unnecessary unsafeCoerce

GHC ghc-devs at haskell.org
Mon Nov 3 14:45:21 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 goldfire):

 I'm intrigued by this idea. But, it would surely have a performance
 impact, if extra analysis must be done on every use of `unsafeCoerce`.
 Would this be opt-in?

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


More information about the ghc-tickets mailing list