[GHC] #1063: hReady should probably return False at the end of a file

GHC trac at galois.com
Sat Aug 16 11:55:19 EDT 2008


#1063: hReady should probably return False at the end of a file
----------------------------+-----------------------------------------------
 Reporter:  igloo           |          Owner:         
     Type:  bug             |         Status:  new    
 Priority:  normal          |      Milestone:  _|_    
Component:  libraries/base  |        Version:  6.6    
 Severity:  normal          |     Resolution:         
 Keywords:                  |     Difficulty:  Unknown
 Testcase:  hReady001       |   Architecture:  Unknown
       Os:  Unknown         |  
----------------------------+-----------------------------------------------
Comment (by ross):

 According to the
 [file://localhost/usr/share/doc/haskell98-report/html/haskell98-report-
 html/io.html#sect21.9.1 H98 Report, S21.9.1], hReady and hWaitForInput
 should fail with isEOFError  in this situation.  False seems wrong: some
 programs will keep waiting forever.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1063#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list