Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#1063 closed bug (fixed)

hReady should probably return False at the end of a file

Reported by: igloo Owned by: igloo
Priority: normal Milestone:
Component: libraries/base Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: hReady001 Blocked By:
Blocking: Related Tickets:

Description

hReady should probably return False at the end of a file, but in GHC it returns True.

Change History (5)

comment:1 Changed 6 years ago by ross

According to the H98 Report, S21.9.1, hReady and hWaitForInput should fail with isEOFError in this situation. False seems wrong: some programs will keep waiting forever.

comment:2 Changed 6 years ago by igloo

  • Owner set to igloo

Good point, thanks

comment:3 Changed 6 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed

comment:4 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:5 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.