[Haskell-cafe] Can't explain this error

Dinh Tien Tuan Anh tuananhbirm at hotmail.com
Mon Jul 11 12:06:30 EDT 2005

Thanks for your reply,
i just simply removed the first line and it works, but i dont understand why 
1/x is not Float.

>Try this:
>sumHam :: Integer -> Float
>sumHam n = sum [1.0/(fromIntegral x) | x<-[-1..n]]
>-- Andy

Use MSN Messenger to send music and pics to your friends 

More information about the Haskell-Cafe mailing list