A Kleisli category is a category that naturally arises from a monad . It is named after the Swiss mathematician Heinrich Kleisli .
definition
Let be a category and a monad, with as endofunctor and , as the monoid operations specified on it . The Kleisli category that belongs to and is referred to below as . The objects and morphisms in it are
, such as
.
Identity morphisms and concatenation are
and
.
Examples
Correspondence forms a Kleisli category. The endo-functor on Set is the formation of the power quantity ,, with .