howMany :: Int -> Int -> Int -> Int howMany n1 n2 n3 | (n1 > a) && (n2 > a) && (n3 > a) = 3 | (n1 > a) && (n2 > a) = 2 | (n1 > a) && (n3 > a) = 2 | otherwise = 1 where a = (n1 + n2 + n3)/3
i get an error message "ERROR C:\My Documents\Haskell programming\question4.19.txt:4 - Instance of Fract ional Int required for definition of howMany" how could i resolved this ? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell