[GHC] #11715: Constraint vs *

GHC ghc-devs at haskell.org
Wed Dec 7 17:46:34 UTC 2016


#11715: Constraint vs *
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.2.1
       Component:  Compiler (Type    |              Version:  8.0.1-rc1
  checker)                           |
      Resolution:                    |             Keywords:  Typeable
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):

 Yes, it would work to have `TYPE :: Coherency -> RuntimeRep -> Type`
 instead of the current `TYPE :: RuntimeRep -> Type`. Algebraically, this
 is just the same as adding more constructors to `RuntimeRep`, as Simon and
 I have proposed. But I see how this might be preferable. I'm curious for
 Simon's opinion on this, noting that such a design is independent of the
 ability to use `Constraint`s to the left of `->` or `Type`s to the left of
 `=>`.

 This new design does not solve the problem I outline at the end of
 comment:47 though.

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


More information about the ghc-tickets mailing list