qualify catch and try

got a build failure on android due to there being a Prelude.catch
This commit is contained in:
Joey Hess 2014-08-10 19:40:21 -04:00
parent 29aa5e82dc
commit fb66ee8c85

View file

@ -52,11 +52,11 @@ catchMsgIO a = do
{- catch specialized for IO errors only -} {- catch specialized for IO errors only -}
catchIO :: MonadCatch m => m a -> (IOException -> m a) -> m a catchIO :: MonadCatch m => m a -> (IOException -> m a) -> m a
catchIO = catch catchIO = M.catch
{- try specialized for IO errors only -} {- try specialized for IO errors only -}
tryIO :: MonadCatch m => m a -> m (Either IOException a) tryIO :: MonadCatch m => m a -> m (Either IOException a)
tryIO = try tryIO = M.try
{- bracket with setup and cleanup actions lifted to IO. {- bracket with setup and cleanup actions lifted to IO.
- -