konn / subcategories

Functors on subcategories induced by class constraints
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

The subcategories package

Haskell CI Hackage Hackage-Deps

This package provides variants of functor-like structures, with domain types are constrained. In particular, this package provides an abstraction for functorial containers, which can be expressed as a functor from a full-subcategory of Hask to Hask itself [^1].

For example:

[^1]: Strictly speaking, CFoldable, a constrained counterpart of Foldable, doesn't require a functoriality as with the original Foldable.

Optimisation

This library is designed to keep the abstraction runtime overhead as minimum as possible.

Some notes: