Henk-Jan van Tuly is correct. Oops! Sorry I was mis-informed. By the way, there is an excellent post about this topic on StackOverflow.com. It covers, seq, weak-head-normal-form, normal form, and thunks. See here:<div><a href="http://stackoverflow.com/questions/6872898/haskell-what-is-weak-head-normal-form/6889335#6889335">http://stackoverflow.com/questions/6872898/haskell-what-is-weak-head-normal-form/6889335#6889335</a> </div>
<div><br></div><div>Hope that makes up for my earlier comment.</div><div><br></div><div>Tim<br><div><br><br><div class="gmail_quote">On Thu, Apr 19, 2012 at 2:31 AM, Henk-Jan van Tuyl <span dir="ltr">&lt;<a href="mailto:hjgtuyl@chello.nl">hjgtuyl@chello.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, 18 Apr 2012 16:45:05 +0200, Brent Yorgey &lt;<a href="mailto:byorgey@seas.upenn.edu" target="_blank">byorgey@seas.upenn.edu</a>&gt; wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Apr 17, 2012 at 02:41:15PM -0700, Tim Perry wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
seq evaluates to Weak Head Normal Form (WHNF). WHNF is the first<br>
contructor. So your use of seq only evaluates the first number and the<br>
cons. I.E., it evaluates to:<br>
s:(Thunk)<br>
</blockquote>
<br>
Actually, it doesn&#39;t even force the first number.  You just get<br>
<br>
Thunk : Thunk<br>
<br>
</blockquote>
<br></div>
A nice way to demonstrate this, is the following GHCi session:<br>
  Prelude&gt; undefined `seq` print &quot;OK&quot;<br>
  *** Exception: Prelude.undefined<br>
  Prelude&gt; [undefined] `seq` print &quot;OK&quot;<br>
  &quot;OK&quot;<br>
<br>
<br>
Regards,<br>
Henk-Jan van Tuyl<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
<a href="http://Van.Tuyl.eu/" target="_blank">http://Van.Tuyl.eu/</a><br>
<a href="http://members.chello.nl/hjgtuyl/tourdemonad.html" target="_blank">http://members.chello.nl/<u></u>hjgtuyl/tourdemonad.html</a><br>
Haskell programming<br>
--</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div></div>