On Thu, Apr 23, 2009 at 7:02 AM, Mozhgan Kabiri mozhgan_...@hotmail.comwrote:
Hi Luck ,
I got you email from the Haskell Cafe list. Hope you don't mind.
Recently I was running a simple program in Haskell and keep getting ***
Exception: stack overflow error !
I don't know how to solve
On Thu, Apr 23, 2009 at 9:06 PM, Luke Palmer lrpal...@gmail.com wrote:
However, there is a function sum in the prelude, so you can do this much
more simply:
sumit :: Int - Int
sumit n = sum [1..n]
:-)
Yeah, but this prelude sum function suffers from the same stack overflow
thing (which