%*********************************************************
\begin{code}
-instance (RealFloat a) => Prelude.Num (Complex a) where
+instance (RealFloat a) => Num (Complex a) where
(x:+y) + (x':+y') = (x+x') :+ (y+y')
(x:+y) - (x':+y') = (x-x') :+ (y-y')
(x:+y) * (x':+y') = (x*x'-y*y') :+ (x*y'+y*x')
fromRational a = fromRational a :+ 0
-instance (Prelude.RealFloat a) => Floating (Complex a) where
+instance (RealFloat a) => Floating (Complex a) where
pi = pi :+ 0
exp (x:+y) = expx * cos y :+ expx * sin y
where expx = exp x