Skip to content

Standalone kind signatures (#16794)

Vladislav Zavialov requested to merge wip/top-level-kind-signatures into master

Implements GHC Proposal #54.

With this patch, a type constructor can now be given an explicit standalone kind signature:

{-# LANGUAGE StandaloneKindSignatures #-}
type Functor :: (Type -> Type) -> Constraint
class Functor f where
  fmap :: (a -> b) -> f a -> f b

This is a replacement for CUSKs (complete user-specified kind signatures), which are now scheduled for deprecation.

See the commit message for:

  • User-facing changes
  • Limitations
  • Implementation notes
Edited by Vladislav Zavialov

Merge request reports