[commit: deepseq] master: actually add the (->) instance, which got lost in the merge (835cad3)
Simon Marlow
marlowsd at gmail.com
Fri Sep 16 15:03:38 CEST 2011
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 <marlowsd at gmail.com>
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
More information about the Cvs-libraries
mailing list