[Haskell-beginners] Seq question

Brent Yorgey byorgey at seas.upenn.edu
Wed Apr 18 16:45:05 CEST 2012

On Tue, Apr 17, 2012 at 02:41:15PM -0700, Tim Perry wrote:
> seq evaluates to Weak Head Normal Form (WHNF). WHNF is the first
> contructor. So your use of seq only evaluates the first number and the
> cons. I.E., it evaluates to:
> s:(Thunk)

Actually, it doesn't even force the first number.  You just get

Thunk : Thunk


More information about the Beginners mailing list