From: simonmar Date: Thu, 8 Nov 2001 17:02:41 +0000 (+0000) Subject: [project @ 2001-11-08 17:02:41 by simonmar] X-Git-Tag: Approximately_9120_patches~598 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=02fb81376bedd7d50241dd75793474d9f03b1603;p=ghc-hetmet.git [project @ 2001-11-08 17:02:41 by simonmar] inputReady can be an unsafe foreign import. --- diff --git a/ghc/lib/std/PrelIO.hs b/ghc/lib/std/PrelIO.hs index 9a15fa9..925108c 100644 --- a/ghc/lib/std/PrelIO.hs +++ b/ghc/lib/std/PrelIO.hs @@ -3,7 +3,7 @@ #undef DEBUG_DUMP -- ----------------------------------------------------------------------------- --- $Id: PrelIO.hs,v 1.1 2001/11/07 18:25:35 sof Exp $ +-- $Id: PrelIO.hs,v 1.2 2001/11/08 17:02:41 simonmar Exp $ -- -- (c) The University of Glasgow, 1992-2001 -- @@ -138,7 +138,7 @@ hWaitForInput h msecs = do (inputReady (fromIntegral (haFD handle_)) (fromIntegral msecs)) return (r /= 0) -foreign import "inputReady" +foreign import "inputReady" unsafe inputReady :: CInt -> CInt -> IO CInt -- ---------------------------------------------------------------------------