HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulelinear-base-0.4.0Haskell2010

Debug.Trace.Linear

A thin wrapper on top of Debug.Trace, providing linear versions of tracing functions.

It only contains minimal amount of documentation; you should consult the original Debug.Trace module for more detailed information.

  • 11 values

Tracing

7 declarations
valuetrace :: String %1 -> a %1 -> a
#

The trace function outputs the trace message given as its first argument, before returning the second argument as its result.

valuetraceStack :: String %1 -> a %1 -> a
#

Like trace, but additionally prints a call stack if one is available.

valuetraceIO :: String %1 -> IO ()
#

The traceIO function outputs the trace message from the IO monad. This sequences the output with respect to other IO actions.

Eventlog tracing

2 declarations
valuetraceEvent :: String %1 -> a %1 -> a
#

The traceEvent function behaves like trace with the difference that the message is emitted to the eventlog, if eventlog profiling is available and enabled at runtime.

Execution phase markers

2 declarations
valuetraceMarker :: String %1 -> a %1 -> a
#

The traceMarker function emits a marker to the eventlog, if eventlog profiling is available and enabled at runtime. The String is the name of the marker. The name is just used in the profiling tools to help you keep clear which marker is which.