Authors: Schrijvers, Tom; Piróg, Maciej; Wu, Nicolas; Jaskelioff, Mauro.
Title: Monad transformers and modular algebraic effects: what binds them together.
Resumen: For over two decades, monad transformers have been the main modular approach for expressing purely functional side-effects in Haskell. Yet, in recent years algebraic effects have emerged as an alternative whose popularity is growing. While the two approaches have been well-studied, there is still confusion about their relative merits and expressiveness, especially when it comes to their comparative modularity. This paper clarifies the connection between the two approaches?some of which is folklore?and spells out consequences that we believe should be better known. We characterise a class of algebraic effects that is modular, and show how these correspond to a specific class of monad transformers. In particular, we show that our modular algebraic effects gives rise to monad transformers. Moreover, every monad transformer for algebraic operations gives rise to a modular effect handler.
Meeting type: Simposio.
Type of job: Artículo Completo.
Production: Monad transformers and modular algebraic effects: what binds them together.
Scientific meeting: 12th ACM SIGPLAN International Symposium on Haskell.
Meeting place: Berlin.
It's published?: Yes
Publication place: New York
Meeting month: 8