How to catch arbitrary exception in Haskell?
-
10-07-2019 - |
Question
How to catch exceptions in Haskell?
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