HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

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!

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 (>!$!<).