haskell-debugger-0.12.2.0: test/golden/exceptions-uncaught/prog/Main.hs
module Main where
import Control.Exception
main :: IO ()
main = do
putStrLn "About to throw"
catch (error "boom outer") handler
putStrLn "Should not reach here"
handler :: SomeException -> IO ()
handler se = do
putStrLn ("Handling exception: " ++ displayException se)
error "boom while handling"