No value restriction is needed for algebraic effects and handlers

From MaRDI portal
Publication:5372003

DOI10.1017/S0956796816000320zbMATH Open1418.68034arXiv1605.06938MaRDI QIDQ5372003FDOQ5372003

Ohad Kammar, Matija Pretnar

Publication date: 23 October 2017

Published in: Journal of Functional Programming (Search for Journal in Brave)

Abstract: We present a straightforward, sound Hindley-Milner polymorphic type system for algebraic effects and handlers in a call-by-value calculus, which allows type variable generalisation of arbitrary computations, not just values. This result is surprising. On the one hand, the soundness of unrestricted call-by-value Hindley-Milner polymorphism is known to fail in the presence of computational effects such as reference cells and continuations. On the other hand, many programming examples can be recast to use effect handlers instead of these effects. Analysing the expressive power of effect handlers with respect to state effects, we claim handlers cannot express reference cells, and show they can simulate dynamically scoped state.


Full work available at URL: https://arxiv.org/abs/1605.06938




Recommendations



Cites Work


Cited In (6)

Uses Software





This page was built for publication: No value restriction is needed for algebraic effects and handlers

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5372003)