[GHC] #9151: Recursive default associated types don't kind-generalize properly

GHC ghc-devs at haskell.org
Thu Jul 24 22:09:33 UTC 2014


#9151: Recursive default associated types don't kind-generalize properly
-------------------------------------+-------------------------------------
              Reporter:  goldfire    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.8.2
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I'm reluctant to change the way that associated type defaults are kind-
 checked; but solving #9200 will also allow this program to be kind-
 checked.  `ToEnum` will be treated as having a CUSK, and hence will
 support polymorphic recursion.

 Simon

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


More information about the ghc-tickets mailing list