Skip to content

No default finalizer exception handler

sheaf requested to merge sheaf/ghc:T21680 into master

Commit cfc8e2e2 introduced a mechanism for handling of exceptions that occur during Handle finalization, and 372cf730 set the default handler to print out the error to stderr.

However, #21680 (closed) pointed out we might not want to set this by default, as it might pollute users' terminals with unwanted information. So, for the time being, the default handler discards the exception. Users are free to install their own exception handler.

Merge request reports