[GHC] #12680: Permit type equality instances in signatures

GHC ghc-devs at haskell.org
Mon Oct 10 20:19:34 UTC 2016


#12680: Permit type equality instances in signatures
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler (Type    |              Version:  8.1
  checker)                           |
      Resolution:                    |             Keywords:  backpack
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 Replying to [comment:6 ezyang]:
 > OK, that looks like a straight up soundness bug. I'll fix it.

 Fix what? I like the current behavior of the hs-boot file, because all
 `data`-types really are injective. Or do you mean fix what's used in a
 signature?

 > Well, I guess what I meant was, what is a situation where you would like
 this?

 The `Nat` one (comment:3) is a great starting point.

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


More information about the ghc-tickets mailing list