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

GHC ghc-devs at haskell.org
Thu Oct 6 19:00:52 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 goldfire):

 Yes, I suppose `checkForRepresentationPolymorphism` is a bit loose in its
 definition of what is representation polymorphic. It should look for the
 kind to be `TYPE blah` before proceeding.

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


More information about the ghc-tickets mailing list