Rodrigo Mesquita pushed to branch wip/romes/26058 at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • libraries/base/src/Control/Exception.hs
    ... ... @@ -116,7 +116,9 @@ module Control.Exception
    116 116
          bracket_,
    
    117 117
          bracketOnError,
    
    118 118
          finally,
    
    119
    -     onException
    
    119
    +     onException,
    
    120
    +     -- ** Printing
    
    121
    +     displayExceptionWithInfo
    
    120 122
     
    
    121 123
          ) where
    
    122 124
     
    

  • libraries/ghc-internal/src/GHC/Internal/Exception/Type.hs
    ... ... @@ -246,7 +246,7 @@ instance Exception SomeException where
    246 246
     --    * The exception context
    
    247 247
     --
    
    248 248
     -- By default, 'uncaughtExceptionHandler' uses 'displayExceptionWithInfo' to print uncaught exceptions.
    
    249
    --- This default can be overriden with 'setUncaughtExceptionHandler', for
    
    249
    +-- This default can be overridden with 'setUncaughtExceptionHandler', for
    
    250 250
     -- instance, to present custom error messages on exceptions to the user.
    
    251 251
     --
    
    252 252
     -- @since base-4.21