category-theory-presentation/categories/30_How/030_Haskell_Kinds.md

17 lines
302 B
Markdown
Raw Normal View History

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] :: *
~~~