The constrained-categories package

[Tags:gpl, library]

Haskell has, and makes great use of, powerful facilities from category theory – basically various variants of functors.

However, all those are just endofunctors in Hask, the category of all Haskell types with functions as morphisms. Which is sufficient for container / control structures that you want to be able to handle any type of data, but otherwise it's a bit limiting, seeing as there are (in maths, science etc.) many categories that cannot properly be represented this way. Commonly used libraries such as thus make little notion of the fact that the objects they deal with actually form a category, instead defining just specialised versions of the operations.

This library generalises functors etc. to a much wider class of categories, by allowing for constraints on objects (so these can have extra properties required). At the same time, we try to keep as close as possible to the well-known Haskell type class hierarchies rather than exactly adopting the mathematicians' notions.

Consider the README file, the examples, and/or the documentation to Control.Category.Constrained for how to make use of this.


Dependencies base (>=4.7 && <5), tagged, void [details]
License GPL-3
Author Justus Sagemüller
Maintainer (@) sagemueller $
Stability Unknown
Category control
Home page
Source repository head: git clone git://
Uploaded Thu Oct 6 14:23:58 UTC 2016 by leftaroundabout
Distributions NixOS:
Downloads 636 total (7 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees