Question

How to catch exceptions in Haskell?

Was it helpful?

Solution

I have figured it out after reading this paper: An Extensible Dynamically-Typed Hierarchy of Exceptions

handle (\(SomeException e) -> return $ "caught: " ++ show e) undefined
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top