[Haskell] Space behaviour & hyperseq
p.turner at computer.org
Thu Jun 17 10:09:43 EDT 2004
On 2004 June 17 Thursday 08:45, Arjan van IJzendoorn wrote:
> function hyperseq and then applying it before the next iterations
> 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
You could substitute
seq (strictList x) y
for hyperseq x y.
More information about the Haskell