[commit: packages/deepseq] master, typeable-with-kinds: Restore compatibility with base-4.3 (5077f36)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:36:03 UTC 2015


Repository : ssh://git@git.haskell.org/deepseq

On branches: master,typeable-with-kinds
Link       : http://git.haskell.org/packages/deepseq.git/commitdiff/5077f36c1422c70cf426b2466d12a3c5476040cc

>---------------------------------------------------------------

commit 5077f36c1422c70cf426b2466d12a3c5476040cc
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Thu Jan 15 13:41:10 2015 +0100

    Restore compatibility with base-4.3
    
    This is fallout from de1bc89


>---------------------------------------------------------------

5077f36c1422c70cf426b2466d12a3c5476040cc
 Control/DeepSeq.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs
index a732feb..31a42d7 100644
--- a/Control/DeepSeq.hs
+++ b/Control/DeepSeq.hs
@@ -291,7 +291,11 @@ instance (Integral a, NFData a) => NFData (Ratio a) where
 #endif
   rnf x = rnf (numerator x, denominator x)
 
+#if MIN_VERSION_base(4,4,0)
 instance (NFData a) => NFData (Complex a) where
+#else
+instance (RealFloat a, NFData a) => NFData (Complex a) where
+#endif
   rnf (x:+y) = rnf x `seq`
                rnf y `seq`
                ()



More information about the ghc-commits mailing list