Ticket #6093 (closed bug: fixed)
Kind polymorphism fails with recursive type definition using different kind
Description
{-# LANGUAGE GADTs, PolyKinds #-}
module Bug where
data R t where
MkR :: R f -> R (f ())
results in
Bug.hs:4:26:
Kind mis-match
The first argument of `R' should have kind `* -> k0',
but `f ()' has kind `k0'
In the type `R (f ())'
In the definition of data constructor `MkR'
In the data type declaration for `R'
Change History
Note: See
TracTickets for help on using
tickets.
