sjoerdvisscher/data-category

Library of categories, with categorical constructions on them

Haskell

59

184 commits

updated Aug 12, 2023

See the code

README

Data-category is a collection of categories, and some categorical constructions on them.

You can restrict the types of the objects of your category by using a GADT for the arrow type.
To be able to proof to the compiler that a type is an object in some category, objects also need to be represented at the value level.
The corresponding identity arrow of the object is used for that.

See the 'Monoid', 'Boolean' and 'Product' categories for some examples.

Note: Strictly speaking this package defines Hask-enriched categories, not ordinary categories (which are Set-enriched.)
In practice this means we are allowed to ignore 'undefined' (f.e. when talking about uniqueness of morphisms),
and we can treat the categories as normal categories.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

category-theory
haskell

Contributors

sjoerdvisscher

183 commits

bergmark

1 commits

sjoerdvisscher/data-category

Library of categories, with categorical constructions on them

Haskell

59

184 commits

updated Aug 12, 2023

See the code

README

Data-category is a collection of categories, and some categorical constructions on them.

You can restrict the types of the objects of your category by using a GADT for the arrow type.
To be able to proof to the compiler that a type is an object in some category, objects also need to be represented at the value level.
The corresponding identity arrow of the object is used for that.

See the 'Monoid', 'Boolean' and 'Product' categories for some examples.

Note: Strictly speaking this package defines Hask-enriched categories, not ordinary categories (which are Set-enriched.)
In practice this means we are allowed to ignore 'undefined' (f.e. when talking about uniqueness of morphisms),
and we can treat the categories as normal categories.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

category-theory
haskell

Contributors

sjoerdvisscher

183 commits

bergmark

1 commits

Languages

Haskell

100.0%