如何在Haskell中捕获任意异常?

时间:2009-01-11 12:45:17

标签: exception haskell exception-handling ghc

如何在Haskell中捕获异常?

1 个答案:

答案 0 :(得分:5)

我在阅读完这篇论文后想出来了:An Extensible Dynamically-Typed Hierarchy of Exceptions

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