Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
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
type DefiningModule DataLog Source # | |
Defined in Polysemy.Log.Data.DataLog type DefiningModule DataLog = "Polysemy.Log.Data.DataLog" |