Re: [Haskell-cafe] Newbie:Debugging and Overgeneralization

2006-05-15 Thread Robert Dockins
On May 15, 2006, at 11:14 AM, Aditya Siram wrote: I have been working with a Haskell text for the past couple of months or so and I have some general problem solving questions. 1. Is there a way to output intermediate values of a calculation? As an imperative programmer I have become used

Re: [Haskell-cafe] Newbie:Debugging and Overgeneralization

2006-05-15 Thread Neil Mitchell
Hi Deech, 1. Is there a way to output intermediate values of a calculation? Debug.Trace.trace is what you want, its not quite as convenient (or safe) as cout, but its usually good enough. If you want to see more detail then Hat (http://www.haskell.org/hat) is probably what you want. From a ge

[Haskell-cafe] Newbie:Debugging and Overgeneralization

2006-05-15 Thread Aditya Siram
I have been working with a Haskell text for the past couple of months or so and I have some general problem solving questions. 1. Is there a way to output intermediate values of a calculation? As an imperative programmer I have become used to using "System.out"'s or 'cout's to check that my fu