Description
Pure logger typeclass and monad transformer.
Description
This package provides a typeclass for logging in pure code, or more generally, in any kind of context. You can do whatever you want with logs, especially get them, clear them or even sink them through IO
if you're logging in (MonadIO m) => m
.
README.md
monad-journal
Pure logger typeclass and monad transformer
What is monad-journal
?
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 know MonadWriter , which is perfect to log things in pure computations. The issue is that you can’t access those “things” inside the computation itself. monad-journal
exposes a cool typeclass called MonadJournal
that enables you to do so.