Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Trace m a where
- trace :: forall r. Member Trace r => String -> Semantic r ()
- runTraceIO :: Member (Lift IO) r => Semantic (Trace ': r) a -> Semantic r a
- runIgnoringTrace :: Member (Lift IO) r => Semantic (Trace ': r) a -> Semantic r a
- runTraceAsOutput :: Semantic (Trace ': r) a -> Semantic (Output String ': r) a
Effect
An effect for logging strings.
Instances
type DefiningModule (Trace :: k -> Type -> Type) Source # | |
Defined in Polysemy.Trace |
Actions
Interpretations
runTraceIO :: Member (Lift IO) r => Semantic (Trace ': r) a -> Semantic r a Source #
Run a Trace
effect by printing the messages to stdout.