polysemy-log-0.4.0.0: Polysemy Effects for Logging
Safe HaskellNone
LanguageHaskell2010

Polysemy.Log.Data.DataLog

Description

 
Synopsis

Documentation

data DataLog a :: Effect where Source #

Adapter for a logging backend.

Usually this is reinterpreted into an effect like those from co-log or di, but it can be used purely for testing.

Constructors

DataLog :: a -> DataLog a m ()

Schedule an arbitrary value for logging.

Local :: (a -> a) -> m b -> DataLog a m b

Stores the provided function in the interpreter and applies it to all log messages emitted within the higher-order thunk that's the second argument.