ref: 2f3ccd459aedf6d03eaee5f77d982cbab4c23396
dir: /tests/Catch.hs/
module Catch(main) where
import Prelude
import Control.Exception
main :: IO ()
main = do
x <- catch (return ("o" ++ "k")) (\ _ -> return "what?")
putStrLn $ showString x
y <- catch (do { error "bang!"; return "huh?" }) (\ (Exn s) -> return s)
putStrLn $ showString y