avoid warnings when built with ghc 7.6
This commit is contained in:
parent
91c9ae83f1
commit
92f036fcb4
4 changed files with 13 additions and 12 deletions
|
@ -9,8 +9,8 @@
|
|||
|
||||
module Utility.Exception where
|
||||
|
||||
import Prelude hiding (catch)
|
||||
import Control.Exception
|
||||
import qualified Control.Exception as E
|
||||
import Control.Applicative
|
||||
import Control.Monad
|
||||
import System.IO.Error (isDoesNotExistError)
|
||||
|
@ -33,7 +33,7 @@ catchMsgIO a = either (Left . show) Right <$> tryIO a
|
|||
|
||||
{- catch specialized for IO errors only -}
|
||||
catchIO :: IO a -> (IOException -> IO a) -> IO a
|
||||
catchIO = catch
|
||||
catchIO = E.catch
|
||||
|
||||
{- try specialized for IO errors only -}
|
||||
tryIO :: IO a -> IO (Either IOException a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue