Proposal: Improve Read Integer

Lennart Augustsson lennart at augustsson.net
Wed Nov 17 04:00:07 EST 2010


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.

  -- Lennart

On Tue, Nov 16, 2010 at 8:34 PM, Ian Lynagh <igloo at earth.li> wrote:
>
> Proposal: Improve Read Integer
> http://hackage.haskell.org/trac/ghc/ticket/4500
>
> Currently, according to H98, H2010, GHC and hugs,
>    reads "1.2" :: [(Integer, String)]
> is
>    []
> whereas I would expect it to be
>    [(1,".2")]
>
> Patch:
> http://hackage.haskell.org/trac/ghc/attachment/ticket/4500/read-integer.dpatch
>
> Suggested deadline: 1 Dec 2010.
>
>
> Thanks
> Ian
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>


More information about the Libraries mailing list