首页 /研究 /Simple and compositional reification of monadic embedded languages
OTHER

Simple and compositional reification of monadic embedded languages

Josef Svenningsson, Bo Joel Svensson

发表年份
2013
引用次数
6

摘要

When writing embedded domain specific languages in Haskell, it is often convenient to be able to make an instance of the Monad class to take advantage of the do-notation and the extensive monad libraries. Commonly it is desirable to compile such languages rather than just interpret them. This introduces the problem of monad reification, i.e. observing the structure of the monadic computation. We present a solution to the monad reification problem and illustrate it with a small robot control language. Monad reification is not new but the novelty of our approach is in its directness, simplicity and compositionality.

关键词

Reification (Marxism)Monad (category theory)Computer scienceHaskellProgramming languagePrinciple of compositionalityDomain-specific languageSimple (philosophy)NotationFunctional programming

相关论文

查看 OTHER 分类全部论文