计算机科学 > 程序设计语言
[提交于 2014年12月22日]
标题:Monads need not be endofunctors
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Tarmo Uustalu[v1] 2014年12月22日 星期一 20:53:17 UTC