Do you find yourself wrapping and unwrapping Monads when you flatmap different kinds of them? Do you sometimes end up with nested layers of Future[Option[Future[A]]]? If one method returns a Validated and another gives you an Either, how do we combine them without match statements? We can use monad transformers to stack Monads, combining one datatype’s effects with another to produce a new monad. In this talk, we will go through a simple example of a monad transformer and how you can use them for cleaner, more readable code.
voted / votable