[GHC] #9756: Warn about unnecessary unsafeCoerce

GHC ghc-devs at haskell.org
Mon Nov 3 17:04:12 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 simonpj):

 It's be a bit awkward to implement: it amounts to emitting a constraint,
 and then reporting a warning if the constraint ''can'' be solved, but
 nothing if it ''can't''.  But I'm sure it's possible.

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


More information about the ghc-tickets mailing list