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
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
From: "Julian Seward (Intl Vendor)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 30 Oct 2001 09:55:44.0099 (UTC)
FILETIME=[0A82EB30:01C16129]
Sven
| from time to time ghc compiled programs simply crash on
| my window
Sven
| from time to time ghc compiled programs simply crash on
| my windows2000 without any meaningfull error message. I guess
| this has something to do with storage management (I vaguely
| remember having read something about errors durcing gc on
| this list, but did not find the correspond
| Note that in GHC, the "version number" of a function can
| often change for hard-to-spot reasons. You just need to
| change (for example) the strictness properties of the
| function, which can be very easy to do when making changes to
| your code. The compiler cares about (much) more than