Proposal: Add an analogue of $! to deepseq
Dean Herington
heringtonlacey at mindspring.com
Mon Jul 4 19:57:45 CEST 2011
At 5:55 PM +1000 7/1/11, Ivan Lazar Miljenovic wrote:
>I propose we add a operator - tentatively labelled $!! (and which
>Hayoo reports isn't currently exported by a Hackage package) - as a
>deepseq analogue $! to the deepseq library:
>
>($!!) :: (NFData a) => (a -> b) ->a -> b
>f $!! x = x `deepseq` f x
>
>infixr 0 $!!
+1
Note that I included the ($!!) operator in my original DeepSeq module
(http://haskell.org/pipermail/haskell/2001-August/001586.html).
Dean
More information about the Libraries
mailing list