Ticket #5938 (closed bug: fixed)
Kind variables not allowed in type family instance declarations
Description
I am trying to create a kind-indexed type family, but I cannot use kind variables in my kind annotations:
{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-}
type family KindFam a
type instance KindFam (a :: *) = Int
type instance KindFam (a :: Bool) = Bool
type instance KindFam (a :: Maybe k) = Char -- doesn't work
Change History
Note: See
TracTickets for help on using
tickets.
