[project @ 2000-04-10 02:28:08 by andy]
authorandy <unknown>
Mon, 10 Apr 2000 02:28:08 +0000 (02:28 +0000)
committerandy <unknown>
Mon, 10 Apr 2000 02:28:08 +0000 (02:28 +0000)
Removing the -DUSE_REPORT_PRELUDE for Hugs, so Hugs can use quicksort for
its sorting function.

Related wibbles in the libraries.

ghc/interpreter/lib/Makefile
ghc/lib/std/List.lhs

index da8120c..e67cab7 100644 (file)
@@ -1,5 +1,5 @@
 # -------------------------------------------------------------------------- #
-# $Id: Makefile,v 1.11 2000/04/06 00:01:27 andy Exp $ 
+# $Id: Makefile,v 1.12 2000/04/10 02:28:08 andy Exp $ 
 # -------------------------------------------------------------------------- #
 
 TOP = ../..
@@ -67,7 +67,7 @@ LIBS =  $(PRELUDE) \
 all :: $(LIBS)
 
 
-HUGSCPP = ../../utils/hscpp/hscpp -D__HUGS__ -DUSE_REPORT_PRELUDE -D__HASKELL98__
+HUGSCPP = ../../utils/hscpp/hscpp -D__HUGS__ -D__HASKELL98__
 
 %.lhs :: $(GHC_LIB_DIR)/std/%.lhs
        $(HUGSCPP) -I../../includes $< > $*.lhs
index 4f70d3f..709687a 100644 (file)
@@ -165,13 +165,17 @@ findIndices      :: (a -> Bool) -> [a] -> [Int]
 #ifdef USE_REPORT_PRELUDE
 findIndices p xs = [ i | (x,i) <- zip xs [0..], p x]
 #else
+#ifdef __HUGS__
+findIndices p xs = [ i | (x,i) <- zip xs [0..], p x]
+#else 
 -- Efficient definition
 findIndices p ls = loop 0# ls
                 where
                   loop _ [] = []
                   loop n (x:xs) | p x       = I# n : loop (n +# 1#) xs
                                 | otherwise = loop (n +# 1#) xs
-#endif
+#endif  /* __HUGS__ */
+#endif  /* USE_REPORT_PRELUDE */
 
 isPrefixOf              :: (Eq a) => [a] -> [a] -> Bool
 isPrefixOf [] _         =  True