ref: b36e72a80a8d1a90f84da10a09055d9a450d3410
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 $ show x
y <- catch (do { error "bang!"; return "huh?" }) (\ (Exn s) -> return s)
putStrLn $ show y