@TECHREPORT{Grabmüller06monadtransformers, author = {Martin Grabmüller}, title = {Monad transformers step by step}, institution = {}, year = {2006} }
Bookmark
OpenURL
Abstract
In this tutorial, we describe how to use monad transformers in order to incrementally add functionality to Haskell programs. It is not a paper about implementing transformers, but about using them to write elegant, clean and powerful programs in Haskell. Starting from an evaluation function for simple expressions, we convert it to monadic style and incrementally add error handling, environment passing, state, logging and input/output by composing monad transformers. 1