O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Combining monad transformers

So far, we have seen different monad transformers dedicated to specific causes. What if we would like to work with more than one transformer at the same time? In this recipe, we will be doing exactly that! We will work with Reader and Writer transformers with IO monad.

We will revisit the cursor example that we wrote earlier and then transform it to use it with multiple monad transformers.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required