June 2019
Intermediate to advanced
213 pages
3h 10m
English
In the previous chapter, you saw how useful monads are. But what if you need operations from two different monads? In this chapter, you will learn how to proceed in such scenarios.
We’ll start with a brief description of transformers: a transformer represents a special type that allows you to combine two monads into one monad that uses the properties of both monads . The result of combining two monads is also a monad.