[Haskell-cafe] a question about *** Exception: stack overflow ..

2009-04-23 Thread Luke Palmer
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

Re: [Haskell-cafe] a question about *** Exception: stack overflow ..

2009-04-23 Thread Peter Verswyvelen
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