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