kinds: Emulation of subkinds and subkind polymorphism

[ bsd3, library, type-system ] [ Propose Tags ]

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.

Versions [RSS] [faq],,,,,
Dependencies base (>=3.0 && <4.4) [details]
License BSD-3-Clause
Copyright © 2009–2010 Brandenburgische Technische Universität Cottbus; © 2011 Wolfgang Jeltsch
Author Wolfgang Jeltsch
Category Type System
Home page
Source repo head: darcs get
this: darcs get --tag kinds-
Uploaded by WolfgangJeltsch at 2011-10-31T15:19:14Z
Distributions NixOS:
Downloads 4002 total (31 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-26 [all 6 reports]


  • Data
    • Data.Kind


Maintainer's Corner

For package maintainers and hackage trustees