Proposal: Add an analogue of $! to deepseq

Sebastian Fischer fischer at
Fri Jul 1 17:29:03 CEST 2011

> infixr 0 $!!


Incedentally, Curry already has it:$!!

> force :: (NFData a) => a -> a
> force x = x `deepseq` x

Might be a bit confusing as it forces NF only when HNF is forced
(which might be later than expected by people not too familiar with


More information about the Libraries mailing list