
On 19/11/2009 11:52, Sittampalam, Ganesh wrote:
Yitzchak Gale wrote:
Simon Marlow wrote:
So then what shall we call the a -> () version? One possibility is to go back to calling it rnf.
In light of apfelmus' comment, I vote for rnf.
And in that case, how about the analogous alternative for seq itself:
hnf :: a -> ()
I think it would be whnf since it doesn't evaluate under lambdas.
I also vote for rnf, because we should have a good reason for changing names of things.
Various people would prefer rnf. Ok, unless there are any further objections, I'll change the names back to class NFData a where rnf :: a -> () and also add deepseq :: a -> b -> b but I'll leave the module name as Control.DeepSeq. Cheers, Simon

On 19/11/09 12:17, Simon Marlow wrote:
Ok, unless there are any further objections, I'll change the names back to
class NFData a where rnf :: a -> ()
and also add
deepseq :: a -> b -> b
but I'll leave the module name as Control.DeepSeq.
I made this change and uploaded deepseq-1.1.0.0 on Friday. There's also an updated parallel-2.1.0.0, but after discussions with Phil Trinder and other Parallel Haskell gurus, I think there may be further changes forthcoming. Upshot: the new version of parallel is still changing, you might want to wait until things settle down (hopefully not long) before switching. Cheers, Simon
participants (1)
-
Simon Marlow