HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

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

Modulebase-4.22.0.0Haskell2010

Control.Exception.Context

Exception context and annotations.

Contents
  1. Destructuring
Synopsis
  • Packagebase-4.22.0.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceContext.hs

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