Free categories, free arrows and free categories with monadic actions
See the codeThis 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 Kleisli 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:
cabal new-run examples:login-state-machine.110 followers · starred Sep 2019
Free categories, free arrows and free categories with monadic actions
See the codeThis 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 Kleisli 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:
cabal new-run examples:login-state-machine.110 followers · starred Sep 2019