HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulebase-4.23.0.0Haskell2010

Control.Exception.Context

Exception context and annotations.

  • 1 type
  • 5 values
  • Packagebase-4.23.0.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceContext.hs
datadata ExceptionContext
#

Exception context represents a list of ExceptionAnnotations. These are attached to SomeExceptions via 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

Destructuring

3 declarations