标签: exception haskell exception-handling ghc
如何在Haskell中捕获异常?
答案 0 :(得分:5)
我在阅读完这篇论文后想出来了:An Extensible Dynamically-Typed Hierarchy of Exceptions
handle (\(SomeException e) -> return $ "caught: " ++ show e) undefined