Closed Atry closed 11 months ago
Codensity of a reader monad is more powerful than that. It has the full strength of State not just Writer, and we separate those effects in the mtl discipline -- otherwise MonadState would have Reader (and possibly Writer) as superclasses.
It should be much faster than
WriterT
, because we don't need to transform the whole stack for every operator.Also
ReaderT
has a simpler implementation thanWriterT
.