Getting ready

In this example, we will use the Writer monad transformer to keep updating a balance sheet with transactions. We will keep pushing transactions to the Writer monad, finally yielding the balance after all transactions are processed.

We will work with the mtl library in this recipe.