8 lines
370 B
HTML
8 lines
370 B
HTML
<h2 id="haskell-kinds">Haskell Kinds</h2>
|
|
<p>In Haskell some types can take type variable(s). Typically: <code>[a]</code>.</p>
|
|
<p>Types have <em>kinds</em>; The kind is to type what type is to function. Kind are the types for types (so meta).</p>
|
|
<pre><code>Int, Char :: *
|
|
[], Maybe :: * -> *
|
|
(,) :: * -> * -> *
|
|
[Int], Maybe Char, Maybe [Int] :: *</code></pre>
|