[Haskell] timing/timeout (how to express that in Haskell)

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Fri May 12 07:54:35 EDT 2006


Arjen van Weelden wrote:

> Personally, I'm often surprised by the laziness introduced by Maybe.

Yes. That's why I chose the return type Boolean in my original post,
and I included the remark on  "Just x with x in whnf".
Mirko used a list, where whnf is not enough.

PS: I am still curious: does threadDelay use
the wall clock or the per-process clock (CPU time)?
And regardless of the answer - how could one obtain
the opposite behaviour? (I don't find this discussed
in the visible docs. Or am I missing something?)

Best regards,
-- 
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
---- http://www.imn.htwk-leipzig.de/~waldmann/ -------



More information about the Haskell mailing list