On Sun, Oct 26, 2014 at 6:52 PM, Cui Liqiang <cui.liqiang@gmail.com> wrote:
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