[GHC] #11255: Expected kind ‘k0’, but has kind ‘(forall k. k, forall k. k)’

#11255: Expected kind ‘k0’, but has kind ‘(forall k. k, forall k. k)’ -------------------------------------+------------------------------------- Reporter: atnnn | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Type checker) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: GHC rejects Unknown/Multiple | valid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The following code works in GHC 7.10: {{{#!hs {-# LANGUAGE TypeFamilies, PolyKinds, DataKinds, UndecidableInstances #-} type family Default :: k type instance Default = '(Default, Default) }}} But fails in HEAD with: {{{ Expected kind ‘k0’, but ‘'(Default, Default)’ has kind ‘(forall k. k, forall k. k)’ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11255 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11255: Expected kind ‘k0’, but has kind ‘(forall k. k, forall k. k)’ -------------------------------------+------------------------------------- Reporter: atnnn | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * owner: => goldfire Comment: I have a fix for this locally. I'm commoning up a bunch of fixes and will validate/push all at once. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11255#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11255: Expected kind ‘k0’, but has kind ‘(forall k. k, forall k. k)’
-------------------------------------+-------------------------------------
Reporter: atnnn | Owner: goldfire
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version: 7.11
checker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Richard Eisenberg

#11255: Expected kind ‘k0’, but has kind ‘(forall k. k, forall k. k)’ -------------------------------------+------------------------------------- Reporter: atnnn | Owner: goldfire Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: GHC rejects | Test Case: valid program | polykinds/T11255 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * testcase: => polykinds/T11255 * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11255#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC