17 Jun
2004
17 Jun
'04
2:09 p.m.
On 2004 June 17 Thursday 08:45, Arjan van IJzendoorn wrote:
function hyperseq and then applying it before the next iterations begins: hyperseq x y = if x==x then y else error "this is very unlikely" This is very expensive
The concept of DeepSeq bothers me, because usually more limited use of strictness will do the job, and sometimes total strictness can't be used. Alternatives are strictList_ and strictList as defined in the "Prelude Extensions" at http://haskell.org/hawiki/PreludeExts You could substitute seq (strictList x) y for hyperseq x y.