Question

Comment intercepter les exceptions en Haskell?

Était-ce utile?

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
scroll top