category-theory-presentation/categories/30_How/030_Haskell_Kinds.md
2013-02-28 16:49:12 +01:00

302 B

Haskell Kinds

In Haskell some types can take type variable(s). Typically: [a].

Types have kinds; The kind is to type what type is to function. Kind are the types for types (so meta).

Int, Char :: *
[], Maybe :: * -> *
(,) :: * -> * -> *
[Int], Maybe Char, Maybe [Int] :: *