Monads need not be endofunctors
Monads need not be endofunctors
复制标题
DOI:
10.2168/lmcs-11(1:3)2015
复制
发表时间:
2010-03
期刊:
影响因子:
--
通讯作者:
Thorsten Altenkirch;James Chapman;Tarmo Uustalu
中科院分区:
文献类型:
--
作者:
Thorsten Altenkirch;James Chapman;Tarmo Uustalu
We introduce a generalisation of monads, called relative monads, allowing for underlying functors between different categories. Examples include finite-dimensional vector spaces, untyped and typed λ-calculus syntax and indexed containers. We show that the Kleisli and Eilenberg-Moore constructions carry over to relative monads and are related to relative adjunctions. Under reasonable assumptions, relative monads are monoids in the functor category concerned and extend to monads, giving rise to a coreflection between monads and relative monads. Arrows are also an instance of relative monads.