projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c9d71
)
mention explicitly that hIsEOF may block
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 20 Feb 2008 14:12:09 +0000
(14:12 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 20 Feb 2008 14:12:09 +0000
(14:12 +0000)
GHC/Handle.hs
patch
|
blob
|
history
diff --git
a/GHC/Handle.hs
b/GHC/Handle.hs
index
e175b12
..
8a79efa
100644
(file)
--- 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 =