arXiv · 1412.7148
Monads need not be endofunctors
Abstract
We introduce a generalization of monads, called relative monads, allowing for underlying functors between different categories. Examples include finite-dimensional vector spaces, untyped and typed lambda-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 relative monads and monads. Arrows are also an instance of relative monads.
Explore related subjects
Keep this discovery
Thosten Altenkirch, James Chapman, Tarmo Uustalu. 2014-12-22. Monads need not be endofunctors. https://doi.org/10.2168/lmcs-11(1:3)2015
Cite the original work for its findings. Save a collection to share your selection of sources.