Extensible effects
Oleg Kiselyov, Amr Sabry, Cameron Swords · 2013
We design and implement a library that solves the long-standing problem of combining effects without imposing restrictions on their interactions (such as static ordering). Effects arise from interactions between a client and an effect handler (interpreter); interactions may vary throughout the program and dynamically adapt to execution conditions. Existing code that relies on monad transformers may be used with our library with minor changes, gaining efficiency over long monad stacks. In addition, our library has greater expressiveness, allowing for practical idioms that are inefficient, cumbersome, or outright impossible with monad transformers.
Cited by 83 works. doi:10.1145/2503778.2503791
Authors
References
- Computational lambda-calculus and monads
- The essence of functional programming
- Monad transformers and modular interpreters
- Representing monads
- Building interpreters by composing monads
- Data types à la carte
- The design of a pretty-printing library
- Strongly typed heterogeneous collections
- Handlers of Algebraic Effects
- Representing layered monads