From 8943fbe83eef077406cd6eacc989917f86e823ea Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 31 Jul 2001 13:03:28 +0000 Subject: [PATCH] [project @ 2001-07-31 13:03:28 by simonmar] merge ghc/lib/std/PrelHandle.hsc rev. 1.15 --- GHC/Handle.hsc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GHC/Handle.hsc b/GHC/Handle.hsc index 7b39f6d..05b19b6 100644 --- a/GHC/Handle.hsc +++ b/GHC/Handle.hsc @@ -4,7 +4,7 @@ #undef DEBUG -- ----------------------------------------------------------------------------- --- $Id: Handle.hsc,v 1.4 2001/07/31 12:48:55 simonmar Exp $ +-- $Id: Handle.hsc,v 1.5 2001/07/31 13:03:28 simonmar Exp $ -- -- (c) The University of Glasgow, 1994-2001 -- @@ -1156,7 +1156,7 @@ hIsTerminalDevice handle = do -- hSetBinaryMode #ifdef _WIN32 -hSetBinaryMode handle bin = +hSetBinaryMode handle bin = withAllHandles__ "hSetBinaryMode" handle $ \ handle_ -> do let flg | bin = (#const O_BINARY) | otherwise = (#const O_TEXT) @@ -1166,10 +1166,9 @@ hSetBinaryMode handle bin = foreign import "setmode" setmode :: CInt -> CInt -> IO CInt #else -hSetBinaryMode handle bin = do +hSetBinaryMode handle bin = withAllHandles__ "hSetBinaryMode" handle $ \ handle_ -> return handle_{haIsBin=bin} - return () #endif -- ----------------------------------------------------------------------------- -- 1.7.10.4