projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split syb off into its own package
[ghc-base.git]
/
Data
/
Complex.hs
diff --git
a/Data/Complex.hs
b/Data/Complex.hs
index
7d29e77
..
3acfa03
100644
(file)
--- a/
Data/Complex.hs
+++ b/
Data/Complex.hs
@@
-44,9
+44,6
@@
module Data.Complex
import Prelude
import Data.Typeable
import Prelude
import Data.Typeable
-#ifdef __GLASGOW_HASKELL__
-import Data.Generics.Basics( Data )
-#endif
#ifdef __HUGS__
import Hugs.Prelude(Num(fromInt), Fractional(fromDouble))
#ifdef __HUGS__
import Hugs.Prelude(Num(fromInt), Fractional(fromDouble))
@@
-65,11
+62,7
@@
infix 6 :+
data (RealFloat a) => Complex a
= !a :+ !a -- ^ forms a complex number from its real and imaginary
-- rectangular components.
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)
deriving (Eq, Show, Read)
-# endif
-- -----------------------------------------------------------------------------
-- Functions over Complex
-- -----------------------------------------------------------------------------
-- Functions over Complex