@hackage polysemy-log-di0.2.2.3

Di Adapters for Polysemy-Log

About

The di adapter for polysemy-log.

import Polysemy.Log
import Polysemy.Log.Di

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

interpretLogDi prog :: Sem [Di.Di Severity path (LogEntry LogMessage), Embed IO] ()
interpretLogStdout prog :: Sem '[Embed IO] ()

For more documentation, please consult Hackage: