Rodrigo Mesquita pushed to branch wip/romes/edsko-exceptions-2 at Glasgow Haskell Compiler / GHC
Commits:
-
0d08543e
by Rodrigo Mesquita at 2026-05-08T16:53:13+01:00
1 changed file:
Changes:
| ... | ... | @@ -234,9 +234,7 @@ instance Exception Void |
| 234 | 234 | --
|
| 235 | 235 | -- @since base-3.0
|
| 236 | 236 | instance Exception SomeException where
|
| 237 | - toException (SomeException e) =
|
|
| 238 | - let ?exceptionContext = emptyExceptionContext
|
|
| 239 | - in SomeException e
|
|
| 237 | + toException e = e
|
|
| 240 | 238 | fromException = Just
|
| 241 | 239 | backtraceDesired (SomeException e) = backtraceDesired e
|
| 242 | 240 | displayException (SomeException e) = displayException e
|