Generic monadic constructs for embedded languages

  • Authors:
  • Anders Persson;Emil Axelsson;Josef Svenningsson

  • Affiliations:
  • Chalmers University of Technology, Sweden,Ericsson, Sweden;Chalmers University of Technology, Sweden;Chalmers University of Technology, Sweden

  • Venue:
  • IFL'11 Proceedings of the 23rd international conference on Implementation and Application of Functional Languages
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a library of generic monadic constructs for embedded languages. It is an extension of Syntactic, a Haskell library for defining and processing generic abstract syntax. Until now, Syntactic has been mostly suited to implement languages based on pure, side effect free, expressions. The presented extension allows the pure expressions to also contain controlled side effects, enabling the representation of expressions that rely on destructive updates for efficiency. We demonstrate the usefulness of the extension by giving examples from the embedded language Feldspar which is implemented using Syntactic.