> > atof:: String -> Float
> > atof s = read s
> 
> works fine except that it fails for some reasonable inputs like "2" and there
> is no way of detecting and handling failures.  I am just about to code an
> `atof' for them but was wondering if there is a better way.
I thought Haskell 1.3 allowed "2" as a valid Float for read.
What implementation are you using?

        -- Lennart



Reply via email to