cabal-cache-1.0.1.5: CI Assistant for Haskell projects

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.CabalCache.IO.Error

Synopsis

Documentation

catchErrno Source #

Arguments

:: [Errno]

errno to catch

-> IO a

action to try, which can raise an IOException

-> IO a

action to carry out in case of an IOException and if errno matches

-> IO a 

Carries out an action, then checks if there is an IOException and a specific errno. If so, then it carries out another action, otherwise it rethrows the error.