-
Notifications
You must be signed in to change notification settings - Fork 16
Exception
instance for SomeAsyncException
should define displayException
#309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes please! Great catch |
Perhaps this can be moved along? @Bodigrim what do you think? |
Yes, seems uncontroversial to me: we unpack Dear CLC members, as an exception, given that the proposed change is very simple, holidays are looming and I trust @alt-romes to create a GHC MR promptly, let's vote on it without waiting for MR. @tomjaguarpaw @parsonsmatt @angerman @hasufell @velveteer @mixphix +1 from me. |
I had forgotten about preparing an MR, but promptly made one now https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13725 Thanks @Bodigrim |
+1 |
2 similar comments
+1 |
+1 |
Thanks all, that's enough votes to approve. |
The instance for
SomeAsyncException
is currently is currently defined aswith an empty implementation.
This means that if the wrapped exception has a custom displayException definition, that definition is lost.Given that the Show instance simply omits the SomeAsyncException wrapper, perhaps a reasonable definition would be:
We propose to update the instance
Exception SomeAsyncException
to the snippet above.Originally by @edsko on the GHC issue tracker.
The text was updated successfully, but these errors were encountered: