1
1
mirror of https://github.com/coot/free-category.git synced 2024-11-23 00:56:58 +03:00
Free categories, free arrows and free categories with monadic actions
Go to file
2019-12-05 02:20:14 +01:00
.circleci Build with ghc881 2019-10-06 19:25:09 +01:00
bench Include more benchmarks 2019-10-06 13:11:45 +01:00
examples Added README 2019-09-29 20:46:19 +01:00
nix Updated nix/free-algebras.nix 2019-12-05 02:20:14 +01:00
src/Control Added foldrL, foldrL and zipWithL 2019-12-05 02:20:14 +01:00
test Added Category instance for Queue 2019-09-07 09:58:45 +02:00
.travis.yml Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00
bench-cats.hp Fixed a typo in README.md file 2019-09-03 21:46:21 +02:00
bench-cats.prof Fixed a typo in README.md file 2019-09-03 21:46:21 +02:00
bench-cats.svg Fixed a typo in README.md file 2019-09-03 21:46:21 +02:00
cabal.project Lifting (#2) 2018-12-10 19:59:39 +01:00
ChangeLog.md Updated ChangeLog 2019-12-05 02:20:14 +01:00
default.nix nix: use -Wno-inline-rule-shadowing in ghc802 2019-10-06 13:11:45 +01:00
free-category.cabal Use free-algebras 0.0.8.0 2019-12-05 02:20:14 +01:00
LICENSE Initial commit 2018-08-26 19:12:12 +02:00
README.md Update README.md 2019-09-08 19:56:04 +00: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 free categories. There are a few presentations based on:

  • realtime queues (C. Okasaki 'Pure Functional Data Structures')
  • 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 categroies are a very useful target which allows to include monadic computations. This packge contains a useful generalisation of Kliesli categories captured by EffCategory class (effectful categories), and a (free) transformer which lifts a category to an effectful one.

Benchmarks

Check performence characteristics of various presentations free categories:

Some examples