Rodrigo Mesquita pushed to branch wip/romes/edsko-exceptions-2 at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • libraries/ghc-internal/src/GHC/Internal/Exception/Type.hs
    ... ... @@ -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