Opened 4 years ago

Closed 4 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):


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 4 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 4 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 4 years ago by simonmar


comment:4 Changed 4 years ago by simonmar

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