Opened 7 years ago

Closed 7 years ago

#4500 closed proposal (wontfix)

Improve Read Integer

Reported by: igloo Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/base Version: 7.0.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Currently, according to H98, H2010, GHC and hugs,

reads "1.2" :: [(Integer, String)]



whereas I would expect it to be


The attached patch fixes it.

Suggested deadline: 1 Dec 2010.

Attachments (1)

read-integer.dpatch (57.0 KB) - added by igloo 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by igloo

Attachment: read-integer.dpatch added

comment:2 Changed 7 years ago by igloo

Resolution: wontfix
Status: newclosed

My intuition was that reads would accept any prefix that parses, but that isn't true (e.g. reads "Truefoo" :: [(Bool, String)]).

Note: See TracTickets for help on using tickets.