The trivial-constraint package

[Tags: gpl, library]

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. Also its opposite (a constraint that no type can ever fulfill).

Properties

Versions0.1.0.0, 0.2.0.0, 0.3.0.0
Change logNone available
Dependenciesbase (>=4.5 && <5) [details]
LicenseGPL-3
AuthorJustus Sagemüller
Maintainersagemueller@geo.uni-koeln.de
CategoryConstraints
Home pagehttps://github.com/leftaroundabout/trivial-constraint
UploadedTue Jun 3 15:43:16 UTC 2014 by leftaroundabout
UpdatedFri Feb 27 12:16:39 UTC 2015 by leftaroundabout to revision 1
DistributionsNixOS:0.3.0.0
Downloads410 total (21 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees