How to catch an arbitrary exception in Haskell?

How to catch exceptions in Haskell?

+4
source share
1 answer

I realized this after reading this article: Extensible dynamically typed exception hierarchy

handle (\(SomeException e) -> return $ "caught: " ++ show e) undefined 
+5
source

All Articles