summaryrefslogtreecommitdiff
path: root/Utility/Exception.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-06-02 15:01:58 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-06-02 15:01:58 -0400
commit16ca22c60af39cc06db62215a1ac12cd5ae7a3c5 (patch)
treecf3f0c6ea6297087cab68ca8317e85b64f57406c /Utility/Exception.hs
parent13aeb89e2a1a44c9404fef93cb3dcdced618285f (diff)
avoid warnings when built with ghc 7.6
Diffstat (limited to 'Utility/Exception.hs')
-rw-r--r--Utility/Exception.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/Exception.hs b/Utility/Exception.hs
index bc928e18e..3835d741d 100644
--- a/Utility/Exception.hs
+++ b/Utility/Exception.hs
@@ -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)