[Haskell-cafe] Question regarding deepseq (Control.DeepSeq)

2010-06-24 Thread Frank Moore
Hello Haskellers, I am new to programming in Haskell and I am having trouble understanding exactly when statements become evaluated. My goal is to try and measure how long a computation takes without having to use a show function. The code I am trying to use is below (taken in part from RWH

Re: [Haskell-cafe] Question regarding deepseq (Control.DeepSeq)

2010-06-24 Thread Frank Moore
) end - getCurrentTime putStrLn (show (end `diffUTCTime` start)) The time is still spent on the show meanOver2 command :( Frank On Thu, Jun 24, 2010 at 9:11 PM, Ivan Miljenovic ivan.miljeno...@gmail.comwrote: On 25 June 2010 10:57, Frank Moore fmo...@gmail.com wrote: Hello Haskellers, I

Re: [Haskell-cafe] Question regarding deepseq (Control.DeepSeq)

2010-06-24 Thread Frank Moore
On Thu, Jun 24, 2010 at 9:38 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: On Friday 25 June 2010 02:57:31, Frank Moore wrote: Hello Haskellers, I am new to programming in Haskell and I am having trouble understanding exactly when statements become evaluated.  My goal is to try