[GHC] #12670: Representation polymorphism validity check is too strict

GHC ghc-devs at haskell.org
Mon Nov 21 22:29:31 UTC 2016


#12670: Representation polymorphism validity check is too strict
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler (Type    |              Version:  8.0.1
  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 bgamari):

 > I also say that your Fun is quite wrong. I prefer this one:

 That is true and I implement your variant in the branch; I probably should
 have written `Fun` as a GADT-style constructor of `TypeRep` to avoid
 confusion.

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


More information about the ghc-tickets mailing list