The function fromInt is no longer around. Use fromIntegral instead,
which works with Int and Integer.
On 4/28/05, Tim Rowe <[EMAIL PROTECTED]> wrote:
> I'm working through "The craft of functional programming" , and I've
> come to excercise 3.14: "Give a function to return the average of
> three i
I'm working through "The craft of functional programming" , and I've
come to excercise 3.14: "Give a function to return the average of
three integers".
My attempt at an answer is:
averageThree :: Int -> Int -> Int -> Float
averageThree a b c = fromInt(a + b + c) / 3
but when I try to load this f