Repository : ssh://darcs.haskell.org//srv/darcs/packages/deepseq On branch : master
http://hackage.haskell.org/trac/ghc/changeset/835cad358b10fe5e6a4f2c38ce1286f5c6fd0d30 >--------------------------------------------------------------- commit 835cad358b10fe5e6a4f2c38ce1286f5c6fd0d30 Author: Simon Marlow <[email protected]> Date: Tue Sep 13 13:30:15 2011 +0100 actually add the (->) instance, which got lost in the merge >--------------------------------------------------------------- Control/DeepSeq.hs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs index 41ccec3..281ac1e 100644 --- a/Control/DeepSeq.hs +++ b/Control/DeepSeq.hs @@ -134,6 +134,10 @@ instance NFData Word64 instance NFData (Fixed a) +-- |This instance is for convenience and consistency with 'seq'. +-- This assumes that WHNF is equivalent to NF for functions. +instance NFData (a -> b) + --Rational and complex numbers. instance (Integral a, NFData a) => NFData (Ratio a) where _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
