trivial-constraint: A class / constraint that any type fulfills

[ constraints, gpl, library ] [ Propose Tags ]

Since GHC 7.4, constraints are first-class: we have the constraint kind, and thus type-classes have a kind such as * -> Constraint.

These can be used as parameters to data types. They also can be combined quite nicely,

type NewConstraint a = (Constraint1 a, Constraint2 a)

however you always need to start with a plain old type class when building constraints.

This library provides a type class that is not really a constraint at all, so you can "start from zero" with building up a custom constraint.

Versions [faq] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.5.0.0, 0.5.1.0, 0.6.0.0
Dependencies base (==4.*) [details]
License GPL-3.0-only
Author Justus Sagemüller
Maintainer sagemuej@smail.uni-koeln.de
Category Constraints
Home page https://github.com/leftaroundabout/trivial-constraint
Uploaded by leftaroundabout at Fri May 30 10:32:11 UTC 2014
Distributions NixOS:0.6.0.0
Downloads 2420 total (165 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees