[Haskell-cafe] Newbie "Instance Of Floating Int" Error
Aditya Siram
aditya_siram at hotmail.com
Sat Apr 29 13:21:42 EDT 2006
Thanks to all for their assistance....
By changing the output of distBetween to Float the function seemed to work.
And using the fromIntegral I was able to get my program, which accepts only
Ints, to work.
I was a little antsy about using fromIntegral because it isn't covered in my
text (Haskell:SOE) until later chapters. But I can find no other way
Deech
More information about the Haskell-Cafe
mailing list