首页    期刊浏览 2024年12月01日 星期日
登录注册

文章基本信息

  • 标题:Modules Over Monads and Their Algebras
  • 本地全文:下载
  • 作者:Maciej Pirog ; Nicolas Wu ; Jeremy Gibbons
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2015
  • 卷号:35
  • 页码:290-303
  • DOI:10.4230/LIPIcs.CALCO.2015.290
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Modules over monads (or: actions of monads on endofunctors) are structures in which a monad interacts with an endofunctor, composed either on the left or on the right. Although usually not explicitly identified as such, modules appear in many contexts in programming and semantics. In this paper, we investigate the elementary theory of modules. In particular, we identify the monad freely generated by a right module as a generalisation of Moggi's resumption monad and characterise its algebras, extending previous results by Hyland, Plotkin and Power, and by Filinski and Stovring. Moreover, we discuss a connection between modules and algebraic effects: left modules have a similar feeling to Eilenberg-Moore algebras, and can be seen as handlers that are natural in the variables, while right modules can be seen as functions that run effectful computations in an appropriate context (such as an initial state for a stateful computation).
  • 关键词:monad; module over monad; algebraic data types; resumptions; free object
国家哲学社会科学文献中心版权所有