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

Moduleghc-internal-9.1003.0Haskell2010

GHC.Internal.Exception.Context

Exception context type.

  • 2 types
  • 1 class
  • 6 values

Exception context

7 declarations
datadata ExceptionContext
#

Exception context represents a list of ExceptionAnnotations. These are attached to SomeExceptions via Control.Exception.addExceptionContext and can be used to capture various ad-hoc metadata about the exception including backtraces and application-specific context.

ExceptionContexts can be merged via concatenation using the Semigroup instance or mergeExceptionContext.

Note that GHC will automatically solve implicit constraints of type ExceptionContext with emptyExceptionContext.

Instances2Semigroup, Monoid

Exception annotations

2 declarations