Control.Monad.CatchIO.Try

tryIO

eitherIO