From 474a36adb08ce63ba208c81c9881b04567ddf008 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 20 Sep 2004 16:35:12 +0000 Subject: [PATCH] [project @ 2004-09-20 16:35:12 by sof] openFile: have Haddock comments mention openBinaryFile --- GHC/Handle.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GHC/Handle.hs b/GHC/Handle.hs index 901a4ae..cde2ef5 100644 --- a/GHC/Handle.hs +++ b/GHC/Handle.hs @@ -740,7 +740,9 @@ addFilePathToIOError fun fp (IOError h iot _ str _) -- * 'isDoesNotExistError' if the file does not exist; or -- -- * 'isPermissionError' if the user does not have permission to open the file. - +-- +-- Note: if you will be working with files containing binary data, you'll want to +-- be using 'openBinaryFile'. openFile :: FilePath -> IOMode -> IO Handle openFile fp im = catch -- 1.7.10.4