Pure logger typeclass and monad transformer
monad-journal is a simple but powerful answer to the logging problem. A lot
of people think that “logging” is
IO-related, while it’s not. Everyone must
, which is perfect to log things in pure computations. The issue is that you
can’t access those “things” inside the computation itself.
exposes a cool typeclass called
MonadJournal that enables you to do so.