1
1
mirror of https://github.com/coot/free-category.git synced 2024-11-22 16:22:05 +03:00
Free categories, free arrows and free categories with monadic actions
Go to file
2020-07-22 19:27:12 +02:00
.circleci Use haskell.nix 2020-07-22 19:16:43 +02:00
bench Removed Cat type 2019-12-05 02:20:14 +01:00
examples Updated cabal files and ChangeLog.md file 2020-07-22 19:27:12 +02:00
nix Use haskell.nix 2020-07-22 19:16:43 +02:00
src/Control Fixed ghc-8.10.1 errors 2020-07-22 19:16:43 +02:00
test Removed Cat type 2019-12-05 02:20:14 +01:00
.travis.yml Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00
cabal.project Fixed ghc-8.10.1 errors 2020-07-22 19:16:43 +02:00
ChangeLog.md Updated cabal files and ChangeLog.md file 2020-07-22 19:27:12 +02:00
default.nix Use haskell.nix 2020-07-22 19:16:43 +02:00
free-category.cabal Updated cabal files and ChangeLog.md file 2020-07-22 19:27:12 +02:00
LICENSE Initial commit 2018-08-26 19:12:12 +02:00
README.md Fixed typos in README.md 2019-12-05 02:20:14 +01:00
release.nix Added release.nix file 2019-12-05 02:20:14 +01:00
shell.nix Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00

Free Category

Maintainer: coot CircleCI

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

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

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 representations:

Resources