diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-05-03 15:08:45 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-05-19 04:57:51 -0400 |
commit | cfc8e2e2e3c9d9044f8f4d100c102b005695905f (patch) | |
tree | 5aca3d8e9be99bfa81581f949c529b47c45a87ec /docs/users_guide | |
parent | 828fbd8ac79c6a163584bd4aed25bef6db4a2a4a (diff) | |
download | haskell-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.rst | 4 |
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 ~~~~~~~~~~~~~~~~~~~~ |