The marriage of effects and monads

  • Authors:
  • Philip Wadler;Peter Thiemann

  • Affiliations:
  • Avaya Labs, NJ;Universität Freiburg, Freiburg i. Br., Germany

  • Venue:
  • ACM Transactions on Computational Logic (TOCL)
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Gifford and others proposed an effect typing discipline to delimit the scope of computational effects within a program, while Moggi and others proposed monads for much the same purpose. Here we marry effects to monads, uniting two previously separate lines of research. In particular, we show that the type, region, and effect system of Talpin and Jouvelot carries over directly to an analogous system for monads, including a type and effect reconstruction algorithm. The same technique should allow one to transpose any effect system into a corresponding monad system.