projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-10-09 17:08:18 by malcolm]
[ghc-base.git]
/
Data
/
Complex.hs
diff --git
a/Data/Complex.hs
b/Data/Complex.hs
index
8ad4c2e
..
c9f8334
100644
(file)
--- a/
Data/Complex.hs
+++ b/
Data/Complex.hs
@@
-39,7
+39,9
@@
module Data.Complex
import Prelude
import Prelude
+#ifndef __NHC__
import Data.Dynamic
import Data.Dynamic
+#endif
infix 6 :+
infix 6 :+
@@
-88,8
+90,10
@@
phase (x:+y) = atan2 y x
-- -----------------------------------------------------------------------------
-- Instances of Complex
-- -----------------------------------------------------------------------------
-- Instances of Complex
+#ifndef __NHC__
#include "Dynamic.h"
INSTANCE_TYPEABLE1(Complex,complexTc,"Complex")
#include "Dynamic.h"
INSTANCE_TYPEABLE1(Complex,complexTc,"Complex")
+#endif
instance (RealFloat a) => Num (Complex a) where
{-# SPECIALISE instance Num (Complex Float) #-}
instance (RealFloat a) => Num (Complex a) where
{-# SPECIALISE instance Num (Complex Float) #-}