12 Nov
2001
12 Nov
'01
4:58 p.m.
Dean Herington wrote:
`seq` forces evaluation of only the top-level construct in its first argument. (($!) similarly for its second argument.) I would guess your "newcounts" are structured (probably a tuple or list), in which case you are not forcing evaluation deeply enough. See http://haskell.org/pipermail/haskell/2001-August/001581.html and followup article.
As someone who also had this problem a while ago, I'm curious why DeepSeq never made it into the Libraries. This would, imo, be something quite generally useful (and it would be really nice to be able to derive it). - Hal