Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Trace m a where
- trace :: forall r. MemberWithError Trace r => String -> Sem r ()
- traceToIO :: Member (Embed IO) r => Sem (Trace ': r) a -> Sem r a
- runTraceList :: Sem (Trace ': r) a -> Sem r ([String], a)
- ignoreTrace :: Sem (Trace ': r) a -> Sem r a
- traceToOutput :: Member (Output String) r => Sem (Trace ': r) a -> Sem r a
- outputToTrace :: forall w r a. Member Trace r => (w -> String) -> Sem (Output w ': r) a -> Sem r a
Effect
An effect for logging strings.
Instances
type DefiningModule (Trace :: k -> Type -> Type) Source # | |
Defined in Polysemy.Trace |
Actions
Interpretations
traceToIO :: Member (Embed IO) r => Sem (Trace ': r) a -> Sem r a Source #
Run a Trace
effect by printing the messages to stdout.
Since: 1.0.0.0
ignoreTrace :: Sem (Trace ': r) a -> Sem r a Source #
Run a Trace
effect by ignoring all of its messages.
Since: 1.0.0.0