File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -215,14 +215,19 @@ infixr 0 `deepseq`
215
215
deepseq :: NFData a => a -> b -> b
216
216
deepseq a b = rnf a `seq` b
217
217
218
- -- | the deep analogue of '$!'. In the expression @f $!! x@, @x@ is
219
- -- fully evaluated before the function @f@ is applied to it.
218
+ -- | The deep analogue of '$!'. @f $!! x@ fully evaluates @x@
219
+ -- before returning @f x@.
220
+ --
221
+ -- There is no guarantee about the ordering of evaluation.
222
+ -- @f x@ may be evaluated before @x@ is fully evaluated.
223
+ -- To impose an actual order on evaluation, use 'pseq' from
224
+ -- "Control.Parallel" in the @parallel@ package.
220
225
--
221
226
-- @since 1.2.0.0
222
227
($!!) :: (NFData a ) => (a -> b ) -> a -> b
223
228
f $!! x = x `deepseq` f x
224
229
225
- -- | a variant of 'deepseq' that is useful in some circumstances:
230
+ -- | A variant of 'deepseq' that is useful in some circumstances:
226
231
--
227
232
-- > force x = x `deepseq` x
228
233
--
You can’t perform that action at this time.
0 commit comments