Advertisement
Guest User

yoba

a guest
Oct 23rd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Control.Exception
  2. import Data.Typeable
  3.  
  4. newtype Foo = Foo (() -> IO ())
  5.  
  6. instance Typeable Foo where
  7.     typeOf _ = typeOf (undefined :: ErrorCall)
  8.  
  9. instance Show Foo where
  10.     show _ = ""
  11.  
  12. instance Exception Foo
  13. main = Control.Exception.catch (error "POOKAN BOMBANOOL") (\ (Foo f) -> f ())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement