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

Re: ghc compiled program crashes

2001-10-30 Thread Sven Eric Panitz
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

RE: ghc compiled program crashes

2001-10-30 Thread Julian Seward (Intl Vendor)
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

RE: ghc --make feature request

2001-10-30 Thread Simon Peyton-Jones
| 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