Created
April 9, 2017 00:02
-
-
Save artagnon/04e3d0c56940f23eda1f2ea0856d1454 to your computer and use it in GitHub Desktop.
Either is not a problem in practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do res <- try (f a) | |
case res of | |
Left (ex :: IOException) -> mapMFirst f as | |
Right res -> return $ Just res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment