A couple of my colleagues are using Haskell to implement a simple desk
calculator but they have run into a problem reading in numbers. Essentially
they need something that will convert a String to a Float. The first attempt
> 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.
Chris Dornan [EMAIL PROTECTED]
University College Cork +353 21 902837