Opened 3 years ago

Closed 3 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 Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

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

is

[]

whereas I would expect it to be

[(1,".2")]

The attached patch fixes it.

Suggested deadline: 1 Dec 2010.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by igloo

comment:2 Changed 3 years ago by igloo

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

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.