| |
comp.lang.haskell |
Mark T.B. Carroll <Mark.Carr...@aetion.com> wrote: >> I would expect >> reads "1.2" :: [(Int,String)] >> to be evaluated to >> [(1,".2")] >> but using Hugs (Version Sep 2006) it is just >> [] >> Bug or feature? AFAIK the report doesn't specify exactly how to parse a number, so I - Dirk
> Good question. GHCi, version 6.8.2, agrees with Hugs.
function to parse the string. The string is then converted, unless
conversion fails. Because of that, one also gets e.g.
strongly suspect "feature". But I never noticed that before, too.