[GHC] #10114: Kind mismatches with AnyK in rank-2 types
GHC
ghc-devs at haskell.org
Wed Apr 8 12:33:12 UTC 2015
#10114: Kind mismatches with AnyK in rank-2 types
-------------------------------------+-------------------------------------
Reporter: cam | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.4
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by simonpj):
Current BUG (HEAD, 7.10)
{{{
type T = forall (f :: k -> k2) (a::k). f a
}}}
Compile with `-fprint-explicit-kinds -ddump-types -XRankNTypes
-XPolyKinds`
{{{
TYPE CONSTRUCTORS
type T (k2 :: BOX) =
forall (k :: BOX) (k1 :: BOX) (f :: k -> k1) (a :: k). f a
}}}
But this elaborated `T` simply doesn't have a sensible kind.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10114#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list