restore Complex's derived Data instance
author'Jose Pedro Magalhaes <jpm@cs.uu.nl>
Thu, 2 Oct 2008 08:26:55 +0000 (08:26 +0000)
committer'Jose Pedro Magalhaes <jpm@cs.uu.nl>
Thu, 2 Oct 2008 08:26:55 +0000 (08:26 +0000)
Data/Complex.hs

index 6ebbfcb..bbc8a07 100644 (file)
@@ -65,7 +65,11 @@ infix  6  :+
 data (RealFloat a) => Complex a
   = !a :+ !a    -- ^ forms a complex number from its real and imaginary
                 -- rectangular components.
+# if __GLASGOW_HASKELL__
+        deriving (Eq, Show, Read, Data)
+# else
         deriving (Eq, Show, Read)
+# endif
 
 -- -----------------------------------------------------------------------------
 -- Functions over Complex