extensible-effects-concurrent-0.30.0: Message passing concurrency as extensible-effect

Safe HaskellNone
LanguageHaskell2010

Control.Eff.LogWriter.Capture

Description

Synopsis

Documentation

captureLogWriter :: LogWriter CaptureLogWriter Source #

A LogWriter monad that provides pure logging by capturing via the Writer effect.

See exampleLogCapture

type CaptureLogs a = LogWriterM CaptureLogWriter a Source #

A LogWriter monad that provides pure logging by capturing via the Writer effect.

type CaptureLogWriter = Writer LogMessage Source #

Alias for the Writer that contains the captured LogMessages from CaptureLogs.

runCaptureLogWriter :: Eff (CaptureLogWriter ': e) a -> Eff e (a, [LogMessage]) Source #

Run a Writer for LogMessages.

Such a Writer is needed to handle CaptureLogWriter