summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/IO/Handle/FD.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/GHC/IO/Handle/FD.hs')
-rw-r--r--libraries/base/GHC/IO/Handle/FD.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/GHC/IO/Handle/FD.hs b/libraries/base/GHC/IO/Handle/FD.hs
index e988b25c9f..ee88b3d5f1 100644
--- a/libraries/base/GHC/IO/Handle/FD.hs
+++ b/libraries/base/GHC/IO/Handle/FD.hs
@@ -138,7 +138,7 @@ addFilePathToIOError fun fp ioe
-- be using 'openBinaryFile'.
openFile :: FilePath -> IOMode -> IO Handle
openFile fp im =
- catchException
+ catch
(openFile' fp im dEFAULT_OPEN_IN_BINARY_MODE True)
(\e -> ioError (addFilePathToIOError "openFile" fp e))
@@ -150,7 +150,7 @@ openFile fp im =
-- @since 4.4.0.0
openFileBlocking :: FilePath -> IOMode -> IO Handle
openFileBlocking fp im =
- catchException
+ catch
(openFile' fp im dEFAULT_OPEN_IN_BINARY_MODE False)
(\e -> ioError (addFilePathToIOError "openFile" fp e))
@@ -165,7 +165,7 @@ openFileBlocking fp im =
openBinaryFile :: FilePath -> IOMode -> IO Handle
openBinaryFile fp m =
- catchException
+ catch
(openFile' fp m True True)
(\e -> ioError (addFilePathToIOError "openBinaryFile" fp e))