summaryrefslogtreecommitdiff
path: root/docs/users_guide
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-05-03 15:08:45 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-05-19 04:57:51 -0400
commitcfc8e2e2e3c9d9044f8f4d100c102b005695905f (patch)
tree5aca3d8e9be99bfa81581f949c529b47c45a87ec /docs/users_guide
parent828fbd8ac79c6a163584bd4aed25bef6db4a2a4a (diff)
downloadhaskell-cfc8e2e2e3c9d9044f8f4d100c102b005695905f.tar.gz
base: Introduce [sg]etFinalizerExceptionHandler
This introduces a global hook which is called when an exception is thrown during finalization.
Diffstat (limited to 'docs/users_guide')
-rw-r--r--docs/users_guide/9.6.1-notes.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/users_guide/9.6.1-notes.rst b/docs/users_guide/9.6.1-notes.rst
index c5580b5abe..14bf7e2994 100644
--- a/docs/users_guide/9.6.1-notes.rst
+++ b/docs/users_guide/9.6.1-notes.rst
@@ -15,6 +15,10 @@ Compiler
``base`` library
~~~~~~~~~~~~~~~~
+- Exceptions thrown by weak pointer finalizers are now caught and reported
+ via a global exception handler. By default this handler reports the error
+ to ``stderr`` although this can be changed using
+ ``GHC.Weak.Finalize.setFinalizerExceptionHandler``.
``ghc-prim`` library
~~~~~~~~~~~~~~~~~~~~