The kinds package
Subkinds are the kind-level analog to subtypes. A kind denotes a set of types, and a subkind of some base kind denotes a subset of the base kind’s set of types. Haskell has no support for subkinds and subkind polymorphism. However, this package can be used to emulate subkinds of kind * and subkind variables.
To define a new subkind, the user declares a type that represents the subkind, and instantiates some classes. Afterwards, the user can declare types to be of that subkind and universally quantify over the inhabitants of the subkind. Since subkinds are represented by types, type-level polymorphism can be used to emulate kind-level polymorphism.
For detailed information, please refer to Section 6 of the paper Generic Record Combinators with Static Type Checking.
Properties
| Versions | 0.0.0.0, 0.0.1.0, 0.0.1.1, 0.0.1.2, 0.0.1.4, 0.0.1.5 |
|---|---|
| Dependencies | base (≥3.0 & <4.4) |
| License | BSD3 |
| Copyright | © 2009–2010 Brandenburgische Technische Universität Cottbus; © 2011 Wolfgang Jeltsch |
| Author | Wolfgang Jeltsch |
| Maintainer | wolfgang@cs.ioc.ee |
| Stability | provisional |
| Category | Type System |
| Home page | http://darcs.wolfgang.jeltsch.info/haskell/kinds |
| Source repository | darcs get http://darcs.wolfgang.jeltsch.info/haskell/kinds/main |
| Upload date | Mon Oct 31 15:19:14 UTC 2011 |
| Uploaded by | WolfgangJeltsch |
| Build failure | ghc-7.2 (log), ghc-7.4 (log) |
Modules
- Data
- Data.Kind
Downloads
- kinds-0.0.1.4.tar.gz (Cabal source package)
- package description (included in the package)