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@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@haskell.org
>
http://www.haskell.org/mailman/listinfo/libraries
>
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries