@hackage polysemy-log0.2.0.0

Polysemy effects for logging

Log thrice, debug once.

–– Г. Любенов

About

A common interface for the polysemy logging backend adapters:

import Polysemy.Log
import Polysemy.Log.Colog

prog :: Member Log r => Sem r ()
prog = do
  Log.debug "debugging"
  Log.error "failing"

interpretLogColog prog :: Sem [Colog.Log (LogEntry LogMessage), Embed IO] ()
interpretLogStdout prog :: Sem '[Embed IO] ()

For more documentation, please consult Hackage: