X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FComplex.hs;h=0f8d13ba98a4e550cf55e34f67485d67d93af817;hb=567080c906535534628b1ab83a4a4425dcd4bb5e;hp=6b9999b19c3533ca43791a96c58dcf3a0accd7aa;hpb=7316246c1797d46f5757ae156486f09b3db083d9;p=haskell-directory.git diff --git a/Data/Complex.hs b/Data/Complex.hs index 6b9999b..0f8d13b 100644 --- a/Data/Complex.hs +++ b/Data/Complex.hs @@ -43,8 +43,9 @@ module Data.Complex import Prelude -#ifndef __NHC__ import Data.Typeable +#ifdef __GLASGOW_HASKELL__ +import Data.Generics.Basics( Data ) #endif #ifdef __HUGS__ @@ -64,7 +65,11 @@ infix 6 :+ data (RealFloat a) => Complex a = !a :+ !a -- ^ forms a complex number from its real and imaginary -- rectangular components. - deriving (Eq, Read, Show) +# if __GLASGOW_HASKELL__ + deriving (Eq, Show, Read, Data) +# else + deriving (Eq, Show, Read) +# endif -- ----------------------------------------------------------------------------- -- Functions over Complex