free-category: efficient data types for free categories and arrows

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Provide various data types for free categories / type aligned queues, type classes which allow to write abstract categories with side effects (Kleisli like categories). These are useful for encoding type safe state machines. Free arrows are also provided.

[Skip to Readme]


Change log
Dependencies base (>=4.9 && <5), free-algebras (>= [details]
License MPL-2.0
Copyright (c) 2018-2019 Marcin Szamotulski
Author Marcin Szamotulski
Category Algebra, Control, Monads, Category
Home page
Bug tracker
Source repo head: git clone
Uploaded by coot at 2019-12-06T11:56:42Z


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Readme for free-category-

[back to package description]

Free Category

Maintainer: coot CircleCI

This package contains efficient implementations of free categories. There are various representations available:

Free arrows and free Kleisli categories are also included.

Free categories are useful to model state machines in a simple yet type safe manner. For that purpose Kleisli categories are a very useful target which allows to include monadic computations. This package contains a useful generalisation of Kliesli categories captured by EffectCategory class (categories with effects), and a (free) transformer which lifts a category to a category with effects.


Check performance characteristics of various representations: