|
|
|
Description |
Algorithms and operations on type kinds.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Type kind representation.
| Constructors | | Instances | |
|
|
|
Adds -> * to the end of a kind.
* ==> * -> *
* -> * ==> * -> * -> *
(* -> *) -> * ==> (* -> *) -> * -> *
|
|
|
Transforms from k to k -> * .
* ==> * -> *
* -> * ==> (* -> *) -> *
(* -> *) -> * ==> ((* -> *) -> *) -> *
|
|
|
Extract kinds of a kinds parameters.
|
|
|
:: String | The base string to add in front of a position number.
| -> Kind | The kind being shown.
| -> String | | Show kinds parameters with kind signatures.
|
|
|
|
Get a kind signature from a Kind.
|
|
|
Get the bastard string representation of a Kind.
|
|
|
Read the bastard string representation to Kind.
|
|
|
:: Int | the maximum KindUnits allowed.
| -> [Kind] | | Generates all possible Kinds given the maximum KindUnits allowed.
1:1 1
*
2:1 2
*->*
3:2 4
*->*->*
(*->*)->*
4:5 9
*->*->*->*
(*->*)->*->*
*->(*->*)->*
(*->*->*)->*
((*->*)->*)->*
5:14 23
*->*->*->*->*
(*->*)->(*->*)->*
(*->*)->*->*->*
*->(*->*)->*->*
*->*->(*->*)->*
(*->*->*)->*->*
((*->*)->*)->*->*
*->(*->*->*)->*
*->((*->*)->*)->*
(*->*->*->*)->*
((*->*)->*->*)->*
(*->(*->*)->*)->*
((*->*->*)->*)->*
(((*->*)->*)->*)->*
The series continues: 1,1,2,5,14,42,132,429,1430,4862,...
|
|
|
Produced by Haddock version 2.4.2 |