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

GHC.Weak.Finalize

  • 4 values
  • Packagebase-4.23.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFinalize.hs

Handling exceptions

3 declarations

When an exception is thrown by a finalizer called by the garbage collector, GHC calls a global handler which can be set with setFinalizerExceptionHandler. Note that any exceptions thrown by this handler will be ignored.

Internal

1 declaration

Deprecated. This function is internal to GHC. It will not be exported in future.

Run a batch of finalizers from the garbage collector. Given an array of finalizers and the length of the array, just call each one in turn.

This is an internal detail of the GHC RTS weak pointer finaliser mechanism. It should no longer be exported from base. There is no good reason to use it. It will be removed in the next major version of base (4.23.*).

See https://github.com/haskell/core-libraries-committee/issues/342