
26 Oct
2014
26 Oct
'14
6:51 p.m.
On Sun, Oct 26, 2014 at 6:52 PM, Cui Liqiang
Why Haskell insists that 10.0 is a Int? How can I explicitly tell Haskell I want a Fractional?
Because digitToInt means exactly what it says. If you want it to become something other than Int, apply fromIntegral to its result. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net