Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

hackage.haskell.org : FiniteCategories

This package provides tools to create categories at the value level. This is different from the Hask category where types are objects in a category with an infinite collection of objects and functions, here we construct categories where objects and arrows are arbitrary values so that we can change categories during runtime. Each category implements two functions following the category structure axioms : ar which returns arrows between two objects of the category and identity which returns the identity of an object. A FiniteCategory implements an additional function : ob which returns objects of the category. Thanks to these functions, we can construct automatically all the usual constructions on the categories (limits and colimits, adjunctions, Yoneda embedding, etc.) Functors are different from usual Functor typeclass, we store functors as mapping between objects and morphisms of two categories. This package is also different from the package data-category because we can enumerate objects and arrows in a finite category. This allows us to construct limit, colimits, adjunctions, etc. automatically for arbitrary finite categories. On the other hand, we loose typecheck at compilation time which ensures that composition is sound in Hask, composition in our package might lead to an error raised during runtime. See the Readme file for installation help. See the package FiniteCategoriesGraphViz to visualize categories with graphviz.

Registry - Homepage - JSON
purl: pkg:hackage/FiniteCategories
Keywords: data, gpl, library, maths
License: CNRI-Python-GPL-Compatible
Latest release: 2 months ago
First release: about 2 years ago
Dependent packages: 1
Downloads: 294 total
Last synced: 5 days ago

    Loading...
    Readme
    Loading...