HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduletrace-dispatcher-2.13.1Haskell2010

Cardano.Logging.Trace

  • 29 values
valueroutingTrace :: Monad m => (a -> m (Trace m a)) -> Trace m a -> Trace m a
#

Allows to route to different tracers, based on the message being processed. The second argument must mappend all possible tracers of the first argument to one tracer. This is required for the configuration!

valuewithNames :: (Monad m, MetaTrace a) => [Text] -> Trace m a -> Trace m a
#

Sets names for the messages in this trace based on the selector function and appends the provided names to the context.

valueappendPrefixName :: Monad m => Text -> Trace m a -> Trace m a
#

Appends a name to the context. E.g. appendName "specific" $ appendName "middle" $ appendName "general" tracer give the result: general.middle.specific.

valuecontramap' :: Contravariant f => (a' -> a) -> f a -> f a'
#

A contramap' which is strict in its second argument and its result captures a common pattern to avoid unintentionally leaking space when composing tracers. The infix alias is (>!$!<).

value(>!$!<) :: Contravariant f => (a' -> a) -> f a -> f a'
#

A contramap' which is strict in its second argument and its result captures a common pattern to avoid unintentionally leaking space when composing tracers. The infix alias is (>!$!<).