Comment attraper une exception arbitraire en Haskell?
-
10-07-2019 - |
Question
Comment intercepter les exceptions en Haskell?
La solution
Je l'ai compris après avoir lu ce document: Un fichier extensible dactylographié de manière dynamique Hiérarchie des exceptions
handle (\(SomeException e) -> return $ "caught: " ++ show e) undefined
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow