Modal Effect Types
Programming Languages
2025-03-20 v3
Abstract
Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of second-class function. We introduce a novel approach based on modal effect types.
Cite
@article{arxiv.2407.11816,
title = {Modal Effect Types},
author = {Wenhao Tang and Leo White and Stephen Dolan and Daniel Hillerström and Sam Lindley and Anton Lorenzen},
journal= {arXiv preprint arXiv:2407.11816},
year = {2025}
}