Proposal: Improve Read Integer

Ian Lynagh igloo at
Wed Nov 17 08:14:28 EST 2010

On Wed, Nov 17, 2010 at 09:00:07AM +0000, Lennart Augustsson wrote:
> The current behaviour is consistent with how Haskell tokenizes at the
> source level.
> I find this easy to remember, and I would be surprised if read behaved
> the way you suggest.

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

I'll close the proposal.


More information about the Libraries mailing list