Opened 5 years ago

Closed 5 years ago

#5323 closed feature request (fixed)

Add ($!!) and force to deepseq

Reported by: ivanm Owned by: simonmar
Priority: high Milestone: 7.4.1
Component: libraries (other) Version: 7.0.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


For the related discussion on libraries@, please see

The result of the discussion was that $!! should be added to deepseq:

($!!) :: (NFData a) => (a -> b) ->a -> b
f $!! x = x `deepseq` f x

infixr 0 $!!

Also, that force should be added but with suitable documentation to indicate possible ways in which it may behave other than as you'd expect:

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

Change History (4)

comment:1 Changed 5 years ago by igloo

  • Milestone set to 7.4.1
  • Priority changed from normal to high
  • Status changed from new to patch

comment:2 Changed 5 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 5 years ago by simonmar


comment:4 Changed 5 years ago by simonmar

  • Resolution set to fixed
  • Status changed from patch to closed
Note: See TracTickets for help on using tickets.