Skip to main navigation Skip to search Skip to main content

Making monads first-class with template haskell

  • Pericles S. Kariotis
  • , Adam M. Procter
  • , William L. Harrison

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

Monads as an organizing principle for programming and semantics are notoriously difficult to grasp, yet they are a central and powerful abstraction in Haskell. This paper introduces a domain-specific language, MonadLab, that simplifies the construction of monads, and describes its implementation in Template Haskell. MonadLab makes monad construction truly first class, meaning that arcane theoretical issues with respect to monad transformers are completely hidden from the programmer. The motivation behind the design of MonadLab is to make monadic programming in Haskell simpler while providing a tool for non-Haskell experts that will assist them in understanding this powerful abstraction.
Original languageEnglish
Title of host publicationProceedings of the first ACM SIGPLAN Symposium on Haskell
Place of PublicationNew York, NY, USA
PublisherPubl by ACM
Pages99-110
Number of pages12
DOIs
StatePublished - 2008
Externally publishedYes

Publication series

NameHaskell '08
PublisherACM

Keywords

  • domain-specific languages
  • monads
  • staged programming

Fingerprint

Dive into the research topics of 'Making monads first-class with template haskell'. Together they form a unique fingerprint.

Cite this