File: README.md

package info (click to toggle)
haskell-monad-journal 0.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 80 kB
  • sloc: haskell: 149; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
# 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](http://hackage.haskell.org/packages/archive/mtl/latest/doc/html/Control-Monad-Writer-Class.html#t: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.