计算机科学 > 程序设计语言
[提交于 2026年9月7日]
标题:A monadic interpreter and type-and-effect checker
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present a concrete implementation in Haskell of a monadic framework that includes both a small-step interpreter and a type-and-effect checker for the corresponding language. Our approach separates the language syntax from the semantics of its effects. This design allows the interpreter to remain parametric over the underlying monad, while the static checker approximates effects independently of their concrete implementation. The theoretical foundation of this framework-applied to a call-by-value lambda calculus with generic effects represented by operations that produce monadic values and are managed through handlers-was introduced in previous work, where the focus was on proving the soundness of the approach. In contrast, the present work leverages Haskell's support for modular programming and monads to demonstrate that the framework is practically implementable and usable. We illustrate the approach with examples using the monad of exceptions and the one of nondeterminism and expressions both with and without handlers.
提交历史
来自:Paola Giannini[v1] 2026年9月7日 星期一 15:53:47 UTC