From: Simon Marlow Date: Wed, 20 Feb 2008 14:12:09 +0000 (+0000) Subject: mention explicitly that hIsEOF may block X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=a26371a343b1c153e0b13cb5ac47e123b43c8d18;p=ghc-base.git mention explicitly that hIsEOF may block --- diff --git a/GHC/Handle.hs b/GHC/Handle.hs index e175b12..8a79efa 100644 --- a/GHC/Handle.hs +++ b/GHC/Handle.hs @@ -1212,6 +1212,9 @@ hSetFileSize handle size = -- 'True' if no further input can be taken from @hdl@ or for a -- physical file, if the current I\/O position is equal to the length of -- the file. Otherwise, it returns 'False'. +-- +-- NOTE: 'hIsEOF' may block, because it is the same as calling +-- 'hLookAhead' and checking for an EOF exception. hIsEOF :: Handle -> IO Bool hIsEOF handle =