polysemy-log-0.2.2.4: 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.

Instances

Instances details
type DefiningModule DataLog Source # 
Instance details

Defined in Polysemy.Log.Data.DataLog

type DefiningModule DataLog = "Polysemy.Log.Data.DataLog"