Skip to content

displayExceptionWithInfo is not exported from base #344

@alt-romes

Description

@alt-romes

Since #285:

By default, uncaughtExceptionHandler uses displayExceptionWithInfo to print uncaught exceptions. This default can be overriden with setUncaughtExceptionHandler, for instance, to present custom error messages on exceptions to the user.

Unfortunately, as an oversight in the proposal, displayExceptionWithInfo is not exported from base.

I propose we export displayExceptionWithInfo from base. It seems natural and useful say, if one wants to override the default but provide displayExceptionWithInfo as a fallback without having to re-implement it.

Tracked upstream as https://gitlab.haskell.org/ghc/ghc/-/issues/26058

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved by CLC votebase-4.22Implemented in base-4.22 (GHC 9.14)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions