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.
cohei / monad-journal Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hadronized/monad-journal
Pure logger typeclass and monad transformer
Home Page: https://hackage.haskell.org/package/monad-journal
License: BSD 3-Clause "New" or "Revised" License