gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 22:42:25 25 4
gpt4 key购买 nike

如何在 Haskell 中捕获异常?

最佳答案

读完这篇论文后我明白了:An Extensible Dynamically-Typed Hierarchy of Exceptions

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

关于haskell - 如何在 Haskell 中捕获任意异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/432859/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com