HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebase-4.20.2.0Haskell2010

Data.Kind

Basic kinds

  • 3 types
  • Packagebase-4.20.2.0
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceKind.hs
typetype Type = TYPE LiftedRep
#

The kind of types with lifted values. For example Int :: Type.

datadata FUN (n :: Multiplicity) (a :: TYPE q) (b :: TYPE r)
#

The builtin function type, written in infix form as a % m -> b. Values of this type are functions taking inputs of type a and producing outputs of type b. The multiplicity of the input is m.

Note that FUN m a b permits representation polymorphism in both a and b, so that types like Int# -> Int# can still be well-kinded.

Instances14Category, Show, Semigroup, Monoid, Arrow, ArrowApply, …
  • Category (->)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Category
  • Show (a -> b)Defined in base-4.20.2.0 · Text.Show.Functions · orphan
  • Semigroup b => Semigroup (a -> b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Base
  • Monoid b => Monoid (a -> b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Base
  • Arrow (->)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Arrow
  • ArrowApply (->)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Arrow
  • ArrowChoice (->)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Arrow
  • ArrowLoop (->)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Arrow
  • (PrintfArg a, HPrintfType r) => HPrintfType (a -> r)Defined in base-4.20.2.0 · Text.Printf
  • (PrintfArg a, PrintfType r) => PrintfType (a -> r)Defined in base-4.20.2.0 · Text.Printf
  • Monad ((->) r)Defined in ghc-internal-9.1003.0 · GHC.Internal.Base
  • Functor ((->) r)Defined in ghc-internal-9.1003.0 · GHC.Internal.Base
  • MonadFix ((->) r)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.Monad.Fix
  • Applicative ((->) r)Defined in ghc-internal-9.1003.0 · GHC.Internal.Base