1
1
mirror of https://github.com/coot/free-category.git synced 2024-09-11 14:17:30 +03:00
Free categories, free arrows and free categories with monadic actions
Go to file
Marcin Szamotulski 510c758b59 Removed some INLINE pragmas
Some are just unnecessary.
2019-09-05 07:42:30 +00:00
.circleci Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00
bench Fixed a typo in README.md file 2019-09-03 21:46:21 +02:00
examples Renamed API in Control.Category.FreeEff 2019-09-03 07:31:33 +00:00
nix Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00
src/Control Removed some INLINE pragmas 2019-09-05 07:42:30 +00:00
test Removed CatL 2019-09-03 06:45:16 +00: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 Renamed API in Control.Category.FreeEff 2019-09-03 07:31:33 +00:00
default.nix Efficient representation of a free category (#5) 2019-08-31 08:12:21 +00:00
free-category.cabal Remove duplicated field in free-category.cabal 2019-09-03 18:18:44 +00:00
LICENSE Initial commit 2018-08-26 19:12:12 +02:00
README.md Fixed a typo in README.md file 2019-09-03 21:46:21 +02: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 two presentations:

  • using realtime queues (C. Okasaki 'Pure Functional Data Structures')
  • using 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