1
1
mirror of https://github.com/coot/free-category.git synced 2024-09-11 14:17:30 +03:00
free-category/README.md
Marcin Szamotulski c5d626e3a5 Removed Cat type
It's not performing as good as 'Queue' or 'ListTr'.
2019-12-05 02:20:14 +01:00

1.8 KiB

Free Category

Maintainer: coot CircleCI

This package contains efficient implementation of free categories. There are various resentations available:

  • real-time queues (C. Okasaki 'Pure Functional Data Structures')
  • type aligned lists
  • continuation passing style

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.

Benchmarks

Check performance characteristics of various presentations free categories:

Some examples