projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9875b3c
)
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
patch
|
blob
|
history
diff --git
a/Data/Complex.hs
b/Data/Complex.hs
index
6ebbfcb
..
bbc8a07
100644
(file)
--- a/
Data/Complex.hs
+++ b/
Data/Complex.hs
@@
-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