diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-11-21 23:39:51 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-11-21 23:40:55 -0500 |
commit | 3f86d715310fa5df911c5e411c4268db57f54498 (patch) | |
tree | 160a590a80d93f730f7ff95cbb30f2bcbd80abd8 /libraries/base/GHC/TopHandler.hs | |
parent | 451aeac3b07f171f148995717d0d9a1eefe08f0e (diff) | |
download | haskell-wip/stack-overflow-size.tar.gz |
Diffstat (limited to 'libraries/base/GHC/TopHandler.hs')
-rw-r--r-- | libraries/base/GHC/TopHandler.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/TopHandler.hs b/libraries/base/GHC/TopHandler.hs index b2b29cf5d7..7da051a319 100644 --- a/libraries/base/GHC/TopHandler.hs +++ b/libraries/base/GHC/TopHandler.hs @@ -173,8 +173,8 @@ real_handler :: (Int -> IO a) -> SomeException -> IO a real_handler exit se = do flushStdHandles -- before any error output case fromException se of - Just StackOverflow -> do - reportStackOverflow + Just (StackOverflow' num_words) -> do + reportStackOverflow num_words exit 2 Just UserInterrupt -> exitInterrupted |