[project @ 2003-05-27 08:46:38 by malcolm]
authormalcolm <unknown>
Tue, 27 May 2003 08:46:38 +0000 (08:46 +0000)
committermalcolm <unknown>
Tue, 27 May 2003 08:46:38 +0000 (08:46 +0000)
For nhc98, like hugs, re-export sum and product from the Prelude.

Data/List.hs

index f2de14a..856e0e9 100644 (file)
@@ -599,7 +599,7 @@ foldl'           :: (a -> b -> a) -> a -> [b] -> a
 foldl' f a []     = a
 foldl' f a (x:xs) = let a' = f a x in a' `seq` foldl' f a' xs
 
-#ifndef __HUGS__
+#ifdef __GLASGOW_HASKELL__
 -- -----------------------------------------------------------------------------
 -- List sum and product
 
@@ -622,4 +622,4 @@ product     l       = prod l 1
     prod []     a = a
     prod (x:xs) a = prod xs (a*x)
 #endif
-#endif  /* __HUGS__ */
+#endif  /* __GLASGOW_HASKELL__ */