X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FComplex.hs;h=749ba91982b9d44a13340138010ca1fab5923639;hb=4c8f5d13c302abce56a276b130fc4eb7c4b4cf0a;hp=20448c7c2e15d6fc6a6d3fc099978d702a082dc6;hpb=3868c8ecba9479ffb24063cb3972cea960a7d1e4;p=haskell-directory.git diff --git a/Data/Complex.hs b/Data/Complex.hs index 20448c7..749ba91 100644 --- a/Data/Complex.hs +++ b/Data/Complex.hs @@ -43,9 +43,7 @@ module Data.Complex import Prelude -#ifndef __NHC__ import Data.Typeable -#endif #ifdef __HUGS__ import Hugs.Prelude(Num(fromInt), Fractional(fromDouble)) @@ -120,10 +118,8 @@ phase (x:+y) = atan2 y x -- ----------------------------------------------------------------------------- -- Instances of Complex -#ifndef __NHC__ #include "Typeable.h" INSTANCE_TYPEABLE1(Complex,complexTc,"Complex") -#endif instance (RealFloat a) => Num (Complex a) where {-# SPECIALISE instance Num (Complex Float) #-}