From a26371a343b1c153e0b13cb5ac47e123b43c8d18 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 20 Feb 2008 14:12:09 +0000 Subject: [PATCH] mention explicitly that hIsEOF may block --- GHC/Handle.hs | 3 +++ 1 file changed, 3 insertions(+) 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 = -- 1.7.10.4