Re: problem definind a function

2001-10-30 Thread Andre W B Furtado
The following code works... = \x y -> (x+y - length [1..(gcd x y)] >= round (((fromIntegral x)+1)/2) ) -- Andre > hello, > > Does anybody know why it is not possible to define the folowing function > in ghc? > > = \x y -> (x+y - length [1..(gcd x y)] >= round ((x+1)/2)) ) > > The mess

problem definind a function

2001-10-30 Thread Juan Ignacio García García
hello, Does anybody know why it is not possible to define the folowing function in ghc? = \x y -> (x+y - length [1..(gcd x y)] >= round ((x+1)/2)) ) The message obtained was this one: No instance for (RealFrac Int) arising from use of `round' at num-s-divs.hs:253 In the second