[project @ 2000-11-03 16:23:37 by simonmar]
authorsimonmar <unknown>
Fri, 3 Nov 2000 16:23:39 +0000 (16:23 +0000)
committersimonmar <unknown>
Fri, 3 Nov 2000 16:23:39 +0000 (16:23 +0000)
"make clean" in here now works as advertised.

95 files changed:
ghc/tests/ccall/should_compile/cc006.hs
ghc/tests/ccall/should_compile/cc007.hs
ghc/tests/ccall/should_compile/cc008.hs
ghc/tests/ccall/should_compile/cc009.hs
ghc/tests/codeGen/should_run/Makefile
ghc/tests/concurrent/should_run/Makefile
ghc/tests/deSugar/should_compile/ds-wildcard.hs
ghc/tests/deSugar/should_compile/ds001.hs
ghc/tests/deSugar/should_compile/ds002.hs
ghc/tests/deSugar/should_compile/ds003.hs
ghc/tests/deSugar/should_compile/ds004.hs
ghc/tests/deSugar/should_compile/ds005.hs
ghc/tests/deSugar/should_compile/ds006.hs
ghc/tests/deSugar/should_compile/ds007.hs
ghc/tests/deSugar/should_compile/ds008.hs
ghc/tests/deSugar/should_compile/ds009.hs
ghc/tests/deSugar/should_compile/ds010.hs
ghc/tests/deSugar/should_compile/ds011.hs
ghc/tests/deSugar/should_compile/ds012.hs
ghc/tests/deSugar/should_compile/ds013.hs
ghc/tests/deSugar/should_compile/ds014.hs
ghc/tests/deSugar/should_compile/ds015.hs
ghc/tests/deSugar/should_compile/ds016.hs
ghc/tests/deSugar/should_compile/ds017.hs
ghc/tests/deSugar/should_compile/ds018.hs
ghc/tests/deSugar/should_compile/ds019.hs
ghc/tests/deSugar/should_compile/ds020.hs
ghc/tests/deSugar/should_compile/ds021.hs
ghc/tests/deSugar/should_compile/ds022.hs
ghc/tests/deSugar/should_compile/ds023.hs
ghc/tests/deSugar/should_compile/ds024.hs
ghc/tests/deSugar/should_compile/ds025.hs
ghc/tests/deSugar/should_compile/ds026.hs
ghc/tests/deSugar/should_compile/ds027.hs
ghc/tests/deSugar/should_compile/ds028.hs
ghc/tests/deSugar/should_compile/ds029.hs
ghc/tests/deSugar/should_compile/ds030.hs
ghc/tests/deSugar/should_compile/ds031.hs
ghc/tests/deSugar/should_compile/ds032.hs
ghc/tests/deSugar/should_compile/ds033.hs
ghc/tests/deSugar/should_compile/ds034.hs
ghc/tests/deSugar/should_compile/ds036.hs
ghc/tests/deSugar/should_compile/ds037.hs
ghc/tests/deSugar/should_compile/ds038.hs
ghc/tests/deSugar/should_compile/ds039.hs
ghc/tests/deSugar/should_compile/ds040.hs
ghc/tests/deSugar/should_compile/ds041.hs
ghc/tests/deSugar/should_compile/ds045.hs
ghc/tests/deSugar/should_compile/ds046.hs
ghc/tests/deSugar/should_compile/ds047.hs
ghc/tests/deSugar/should_compile/ds048.hs
ghc/tests/io/should_run/Makefile
ghc/tests/mk/should_compile.mk
ghc/tests/mk/should_fail.mk
ghc/tests/mk/should_run.mk
ghc/tests/programs/Makefile
ghc/tests/programs/callback/Makefile
ghc/tests/reader/should_compile/Makefile
ghc/tests/reader/should_compile/MyList.hi [deleted file]
ghc/tests/reader/should_compile/read002.hs
ghc/tests/reader/should_compile/read003.hs
ghc/tests/reader/should_compile/read004.hs
ghc/tests/reader/should_compile/read005.hs
ghc/tests/reader/should_compile/read005.stderr [deleted file]
ghc/tests/reader/should_compile/read006.hs
ghc/tests/reader/should_compile/read007.hs
ghc/tests/reader/should_compile/read008.hs
ghc/tests/reader/should_compile/read009.hs
ghc/tests/reader/should_compile/read010.hs
ghc/tests/reader/should_compile/read011.hs
ghc/tests/reader/should_compile/read014.hs
ghc/tests/reader/should_compile/read015.hs
ghc/tests/reader/should_compile/read016.hs
ghc/tests/reader/should_compile/read017.hs
ghc/tests/reader/should_compile/read018.hs
ghc/tests/reader/should_compile/read019.hs
ghc/tests/reader/should_compile/read020.hs
ghc/tests/reader/should_compile/read021.hs
ghc/tests/rename/should_compile/Makefile
ghc/tests/rename/should_compile/rn025.hs
ghc/tests/rename/should_compile/rn026.hs
ghc/tests/rename/should_compile/rn027.hs
ghc/tests/rename/should_compile/rn028.hs
ghc/tests/rename/should_compile/rn029.hs
ghc/tests/rename/should_compile/rn030.hs
ghc/tests/rename/should_compile/rn031.hs
ghc/tests/rename/should_compile/rn032.hs
ghc/tests/rename/should_compile/rn033.hs
ghc/tests/rename/should_compile/rn034.hs
ghc/tests/rename/should_compile/rn035.hs
ghc/tests/rename/should_compile/rn036.hs
ghc/tests/rename/should_compile/rn037.hs
ghc/tests/simplCore/should_compile/simpl001.hs
ghc/tests/simplCore/should_compile/simpl002.hs
ghc/tests/simplCore/should_compile/simpl003.hs

index 3740107..ede31d7 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! cc006 -- ccall with non-standard boxed arguments and results
 
-module Test where
+module ShouldCompile where
 
 import Foreign
 import CCall
index b1528b4..70a15f2 100644 (file)
@@ -1,4 +1,4 @@
 -- !!! cc007 -- foreign import with external name equal to Haskell name.
-module Test where
+module ShouldCompile where
 
 foreign import sine :: Double -> Double
index 6e141f4..b6725e3 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! cc008 -- foreign export dynamic returning newtype of Addr
-module Test where
+module ShouldCompile where
 
 import Addr
 
index 959ebea..6a6ebca 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! cc009 -- foreign label returning newtype of Addr
-module Test where
+module ShouldCompile where
 
 import Addr
 
index 73d44ab..d9b7a9f 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.14 2000/08/22 14:05:05 sewardj Exp $
+# $Id: Makefile,v 1.15 2000/11/03 16:23:37 simonmar Exp $
 
 TOP = ../..
 include $(TOP)/mk/boilerplate.mk
@@ -39,7 +39,6 @@ SRC_MKDEPENDHS_OPTS += -fglasgow-exts
 
 .PRECIOUS: %.bin %.o
 
-clean ::
-       rm -f *.bin *.o
+CLEAN_FILES += PrelMain.hi
 
 include $(TOP)/mk/target.mk
index b17dea1..6b0271d 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.8 2000/06/12 17:01:57 panne Exp $
+# $Id: Makefile,v 1.9 2000/11/03 16:23:37 simonmar Exp $
 
 TOP = ../..
 include $(TOP)/mk/boilerplate.mk
@@ -16,4 +16,6 @@ conc021_RUNTEST_OPTS = -x 250
 
 SRC_HC_OPTS += -dcore-lint -package concurrent -fglasgow-exts
 
+CLEAN_FILES += PrelMain.hi
+
 include $(TOP)/mk/target.mk
index a62c7b4..d3f0b60 100644 (file)
@@ -2,7 +2,7 @@
 --
 -- this tests ultra-simple function and pattern bindings (no patterns)
 
-module Test where
+module ShouldCompile where
 
 -- simple function bindings
 
index a63de94..280674e 100644 (file)
@@ -2,7 +2,7 @@
 --
 -- this tests "overlapping" variables and guards
 
-module Test where
+module ShouldCompile where
 
 f x = x
 f y = y
index 0faff0e..dafeac9 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds003 -- list, tuple, lazy, as patterns
 --
-module Test where
+module ShouldCompile where
 
 f []           y        True  = []
 f x            a@(y,ys) ~z    = []
index cd89e18..ebbe8e0 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds004 -- nodups from SLPJ p 79
 --
-module Test where
+module ShouldCompile where
 
 -- SLPJ, p 79
 nodups []                   = []
index 6fca84b..a02e8d9 100644 (file)
@@ -2,7 +2,7 @@
 --
 -- this simply tests a "typical" example
 
-module MapPairs where
+module ShouldCompile where
 
 -- from SLPJ, p 78
 mappairs f []     ys     = []
index ba05547..d66e7c1 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds006 -- v | True = v+1 | False = v (dead code elim)
 --
-module Test where
+module ShouldCompile where
 
 v | True  = v + 1
   | False = v
index dd0fcd5..ae12cf7 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds007 -- simple local bindings
 
-module ShouldSucceed where
+module ShouldCompile where
 
 w = a where a = y
             y = []
index a97470d..73707ed 100644 (file)
@@ -2,7 +2,7 @@
 --
 -- these tests involve way-cool TyApps
 
-module Test where
+module ShouldCompile where
 
 f x = []
 
index ba20556..6ebcc96 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds009 -- simple list comprehensions
 
-module SimpleListComp where
+module ShouldCompile where
 
 f xs = [ x | x <- xs ]
 
index abf6fa1..268610e 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds010 -- deeply-nested list comprehensions
 
-module Test where
+module ShouldCompile where
 
 z = [ (a,b,c,d,e,f,g,h,i,j) | a <- "12",
                              b <- "12",
index f9dc13d..dab482f 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds011 -- uses of "error"
 
-module Tests where
+module ShouldCompile where
 
 f = error []
 
index 8870881..4ef9d8c 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds012 -- simple Integer arithmetic
 --
-module Tests where
+module ShouldCompile where
 
 f x = 1 + 2 - 3 + 4 * 5
 
index da7267d..3fb55ab 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds013 -- simple Rational arithmetic
 
-module Tests where
+module ShouldCompile where
 
 f = 1.5 + 2.0 - 3.14159265 + 4.2 * 5.111111111111111111111111111
 
index 8770cb7..23b3709 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! ds014 -- character and string literals
 -- !!!   really should add ALL weird forms...
 
-module Tests where
+module ShouldCompile where
 
 a = 'a'
 b = "b"
index b14cc6e..2464577 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds015 -- lambdas
 --
-module Tests where
+module ShouldCompile where
 
 f x = ( \ x -> x ) x
 
index 370c37e..41394e7 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds016 -- case expressions
 --
-module Tests where
+module ShouldCompile where
 
 f x y z =
     case ( x ++ x ++ x ++ x ++ x ) of
index 2009244..e6fd6d0 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds017 -- let expressions
 --
-module Tests where
+module ShouldCompile where
 
 f x y z
   = let
index 00098bd..b521bad 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds018 -- explicit lists and tuples
 --
-module Tests where
+module ShouldCompile where
 
 -- exprs
 
index 8056a54..6bcf43f 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds019 -- mixed var and uni-constructor pats
 
-module Test where
+module ShouldCompile where
 
 f (a,b,c) i     o = []
 f d       (j,k) p = []
index 86ffff1..479d57a 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds020 -- lazy patterns (in detail)
 --
-module Test where
+module ShouldCompile where
 
 a ~([],[],[])    = []
 a ~(~[],~[],~[]) = []
index 1f33591..4faaba5 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds021 -- hairier uses of guards
 
-module Test where
+module ShouldCompile where
 
 f x y z | x == y     = []
        | x /= z     = []
index 6728710..2ac429f 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds022 -- literal patterns (wimp version)
 --
-module Tests where
+module ShouldCompile where
 
 f 1 1.1 = []
 f 2 2.2 = []
index a15c464..736107d 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds023 -- overloading eg from section 9.2
 --
-module Tests where
+module ShouldCompile where
 
 f x    = g (x == x) x
 g b x  = abs (f x)
index 9c1c9d8..76606a9 100644 (file)
@@ -3,7 +3,7 @@
 -- do all the right types get stuck on all the
 -- Nils and Conses?
 
-module ShouldSucceed where
+module ShouldCompile where
 
 
 f x = [[], []]
index 8b7651f..fdbf0ff 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds025 -- overloaded assoc -- AbsBinds
 
-module Util where
+module ShouldCompile where
 
 ehead xs loc | null xs = error ("4"++loc)
              | True = head xs
index 969587d..f21ca0b 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds026 -- classes -- incl. polymorphic method
 
-module ShouldSucceed where
+module ShouldCompile where
 
 class Foo a where
   op :: a -> a
index 5f7a545..436958e 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds027 -- simple instances
 --
-module Test where
+module ShouldCompile where
 
 data Foo = Bar | Baz
 
index bec8c19..4c7944a 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! ds028: failable pats in top row
 
-module ShouldSucceed where
+module ShouldCompile where
 
 
 -- when the first row of pats doesn't have convenient
index 833e19b..0000523 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! ds029: pattern binding with guards (dubious but valid)
 --
 
-module Test where
+module ShouldCompile where
 
 f x = y
     where (y,z) | y < z     = (0,1)
index 6046fd9..8475b55 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! ds030: checks that types substituted into binders
 --
-module Test where
+module ShouldCompile where
 
 f x = case x of [] -> (3::Int) ; _ -> (4::Int)
index 3378800..5f25c15 100644 (file)
@@ -1,4 +1,4 @@
-module ShouldSucceed where
+module ShouldCompile where
 
 foldPair :: (a->a->a,b->b->b) -> (a,b) -> [(a,b)] -> (a,b)
 foldPair fg       ab [] = ab
index 65f06c3..09e2de1 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! recursive funs tangled in an AbsBind
 
-module ShouldSucceed where
+module ShouldCompile where
 
 
 flatten :: Int         -- Indentation
index 83a00ca..9d89a93 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! getting top-level dependencies right
 --
-module Test where
+module ShouldCompile where
 
 f1 x = g1 x
 g1 y = y
index 47a190e..0725a7a 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! mutually-recursive methods in an instance declaration
 --
-module Test where
+module ShouldCompile where
 
 class Foo a where
     op1 :: a -> a 
index fc30c07..a024402 100644 (file)
@@ -13,7 +13,7 @@ error in the code below which disappears when the last line is
 commented out
 -}
 
-module Test2 where
+module ShouldCompile where
 
 --brack :: (Eq a) => a -> a -> [a] -> ([a],[a])
 --brack open close = brack' open close (1 :: Int)
index 72eb43a..d5fc130 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! AbsBinds with tyvars, no dictvars, but some dict binds
 --
-module ShouldSucceed where
+module ShouldCompile where
 
 f x y = (fst (g y x), x+(1::Int))
 g x y = (fst (f x y), y+(1::Int))
index 6436b57..04b043c 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! Jon Hill reported a bug in desugaring this in 0.09
 -- !!! (recursive with n+k patts)
 --
-module ShouldSucceed where
+module ShouldCompile where
 
 takeList :: Int -> [a] -> [a]
 takeList 0     _      = []
index a6588a4..ad000a5 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! make sure correct type applications get put in
 -- !!!   when (:) is saturated.
 
-module ShouldSucceed where
+module ShouldCompile where
 
 
 f = (:)
index 8be249b..c02f9f4 100644 (file)
@@ -1,3 +1,5 @@
+module ShouldCompile where
+
 -- !!! Another bug in overloaded n+k patts
 --
 
index 072ed89..9fafd58 100644 (file)
@@ -7,7 +7,7 @@
           the constructor properly.
 -}
 
-module Bug where
+module ShouldCompile where
 
 data Eq a => Foo a = Foo { x :: a }
 
index 207132e..0bbc767 100644 (file)
@@ -5,7 +5,7 @@
 -- To: glasgow-haskell-bugs@majordomo.haskell.org
 -- Subject: compiler-bug
 
-module Test where
+module ShouldCompile where
 
 erroR :: Int
 erroR = n where
index 191e943..5126ff3 100644 (file)
@@ -1,4 +1,4 @@
-module Test where
+module ShouldCompile where
 
 -- Strict field unpacking tests: compile with -O -funbox-strict-fields.
 
index 90078e0..f6ee2b5 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Nullary rec-pats for constructors that hasn't got any labelled
 -- !!! fields is legal Haskell, and requires extra care in the desugarer.
-module Test where
+module ShouldCompile where
 
 data X = X Int [Int]
 
index 2003430..9274aac 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! newtypes with a labelled field.
-module ShouldSucceed where
+module ShouldCompile where
 
 newtype Foo = Foo { x :: Int } deriving (Eq)
 
index 86ffcf7..4e19bcf 100644 (file)
@@ -27,4 +27,6 @@ io028_RUNTEST_OPTS += -i io028.hs
 
 .PRECIOUS: %.o %.bin
 
+CLEAN_FILES += *.out *.inout
+
 include $(TOP)/mk/target.mk
index 929ced2..3fdcc62 100644 (file)
@@ -1,4 +1,5 @@
 #-----------------------------------------------------------------------------
+# $Id: should_compile.mk,v 1.4 2000/11/03 16:23:38 simonmar Exp $
 # template for should_compile tests.
 
 HS_SRCS = $(wildcard *.hs)
@@ -9,7 +10,10 @@ SRC_RUNTEST_OPTS += -x 0 \
 
 %.o : %.hs
        @echo ---- Testing for successful compilation of $<
-       @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
+       $(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
 
 all :: $(HS_OBJS)
 
+# Most single-module tests are declared to be module ShouldCompile, so we
+# can clean the .hi files in one go:
+CLEAN_FILES += ShouldCompile.hi
index 17b10e6..ab201a9 100644 (file)
@@ -1,4 +1,5 @@
 #-----------------------------------------------------------------------------
+# $Id: should_fail.mk,v 1.4 2000/11/03 16:23:38 simonmar Exp $
 # template for should_fail tests
 
 HS_SRCS = $(wildcard *.hs)
@@ -12,3 +13,6 @@ SRC_RUNTEST_OPTS += -x 1 \
        @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
 
 all :: $(HS_OBJS)
+
+# occasionally a test goes wrong and compiles by mistake, so...
+CLEAN_FILES += ShouldFail.hi
index eb0336b..d9b5e68 100644 (file)
@@ -17,4 +17,4 @@ all :: $(RUNTESTS)
 %.bin : %.o
        $(HC) $(HC_OPTS) $($*_LD_OPTS) $< -o $@
 
-CLEAN_FILES += $(BINS)
+CLEAN_FILES += $(BINS) Main.hi
index f832adb..accac81 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.7 2000/04/11 11:53:47 simonmar Exp $
+# $Id: Makefile,v 1.8 2000/11/03 16:23:38 simonmar Exp $
 #
 # (c) The GHC Team, 1999-2000
 #
@@ -22,7 +22,7 @@ NOT_THESE += north_lias
 #      Deliberately causes divide by zero, and
 #      we can't catch that yet
 
-NOT_THESE += andy_cherry barton-mangler-bug callback cvh_unboxing dmgob_native1 dmgob_native2 fast2haskell fexport jtod_circint okeefe_neural
+NOT_THESE += andy_cherry barton-mangler-bug cvh_unboxing dmgob_native1 dmgob_native2 fast2haskell fexport jtod_circint okeefe_neural
 #      doesn't compile
 
 NOT_THESE += jeff-bug lennart_array
index 8eb5c96..a826efd 100644 (file)
@@ -1,9 +1,11 @@
+#-----------------------------------------------------------------------------
+# $Id
+
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
 
-SRC_HC_OPTS += -fglasgow-exts
-
-CC = $(HC)
+SRC_HC_OPTS += -fglasgow-exts -fvia-C
+SRC_LD_OPTS += Main_stub.o
 
 all :: runtest
 
index ac9ca82..a7bb484 100644 (file)
@@ -10,4 +10,6 @@ read014_HC_OPTS += -Wall
 read022_HC_OPTS = -fglasgow-exts
 read024_HC_OPTS = -fglasgow-exts
 
+CLEAN_FILES += T1.hi T2.hi MyList.hi
+
 include $(TOP)/mk/target.mk
diff --git a/ghc/tests/reader/should_compile/MyList.hi b/ghc/tests/reader/should_compile/MyList.hi
deleted file mode 100644 (file)
index 07777f3..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-__interface MyList 1 0 where
-__export MyList MyList{Empty ZCZCZC};
-import PrelBase 16 :: addr2Integer 1 foldr 1 int2Integer 1 integer_0 1 integer_1 1 integer_2 1 integer_m1 1;
-import PrelPack 15 :: packCStringzh 1 unpackAppendCStringzh 1 unpackCStringzh 1 unpackFoldrCStringzh 1 unpackNByteszh 1;
-2 data MyList a = Empty |  ZCZCZC (MyList a) (MyList a) ;
index 0d26eb7..5b069fe 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! tests fixity reading and printing
-module Reader where
+module ShouldCompile where
 
 infixl 1 `f`
 infixr 2 \\\
index d0e5206..afc3a21 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Testing layout rule
-module Layout where
+module ShouldCompile where
 
 l1 :: IO ()
 l1 = do
index f21bb12..0741d0c 100644 (file)
@@ -1,4 +1,4 @@
-module ShouldFail where
+module ShouldCompile where
 
 {-
 From: Kevin Hammond <kh>
index e02b3d0..6e2c575 100644 (file)
@@ -1,2 +1,4 @@
+module ShouldCompile where
+
 -- !!! Empty comments terminating a file..
 main = print "Hello" --
diff --git a/ghc/tests/reader/should_compile/read005.stderr b/ghc/tests/reader/should_compile/read005.stderr
deleted file mode 100644 (file)
index 482b571..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Haskell compiler received signal 2
index bb26ed0..f04b29b 100644 (file)
@@ -3,4 +3,3 @@ module MyList (MyList(Empty, (:::))) where
 
 data MyList a =   Empty
                 | (MyList a) ::: (MyList a)
-
index a651883..55a4332 100644 (file)
@@ -1,4 +1,4 @@
-module User where
+module ShouldCompile where
 
 import MyList
 
index 12e2bb6..20060b0 100644 (file)
@@ -1,4 +1,4 @@
-module ShouldSucceed where
+module ShouldCompile where
 
 {-# SPECIALISE f :: Int -> Int #-}
 f n = n + 1
index 588aae8..5294012 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! combining undeclared infix operators
-module ShouldSucceed where
+module ShouldCompile where
 
 -- should default to 'infixl 9'
 
index 579152b..d20f5fc 100644 (file)
@@ -1,4 +1,4 @@
 -- !!! Infix record constructor.
-module ShouldSucceed where
+module ShouldCompile where
 
 data Rec = (:<-:) { a :: Int, b :: Float }
index fec644b..7e20d46 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! do & where interaction
-module ShouldSucceed where
+module ShouldCompile where
 
 f1 :: IO a -> IO [a]
 f1 x = do
index b8bfe7f..55fc053 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Empty export lists are legal (and useful.)
-module T () where
+module ShouldCompile () where
 
 ng1 x y = negate y
 
index 2cee2da..7ba6140 100644 (file)
@@ -1,2 +1,2 @@
 -- !!! Testing whether the parser likes empty declarations..
-module M where { ;;;;;x=let{;;;;;y=2;;;;}in y;;;;;}
+module ShouldCompile where { ;;;;;x=let{;;;;;y=2;;;;}in y;;;;;}
index a2f4311..c333c40 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Checking that both import lists and 'hiding' lists might
 -- !!! be empty.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List  ()
 import List  hiding ()
index e87fede..4349cb2 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that empty declarations are permitted.
-module ShouldSucceed where
+module ShouldCompile where
 
 
 class Foo a where
index ed3f07d..e4abfb6 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that empty contexts are permitted.
-module ShouldSucceed where
+module ShouldCompile where
 
 data () => Foo a = Foo a
 
index 2ba776d..3de6a9b 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking what's legal in the body of a class declaration.
-module ShouldSucceed where
+module ShouldCompile where
 
 class Foo a where {
   (--<>--) :: a -> a -> Int  ;
index ea6c04d..50efcf3 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that qualified method names are legal in instance body.
-module ShouldSucceed where
+module ShouldCompile where
 
 import Prelude hiding (Eq, (==))
 import Prelude as P (Eq,(==))
index b515df2..8d5856e 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Empty export list
 
-module Reader() where
+module ShouldCompile() where
 
 instance Show (a->b) where
   show f = "<<function>>"
index 45b95af..9614587 100644 (file)
@@ -11,6 +11,9 @@ SRC_HC_OPTS += -dcore-lint
 # rn025_HC_OPTS = -hi -hi-with-exports
 # Rn037Help_HC_OPTS = -hi
 
+CLEAN_FILES += Confused.hi Foo.hi Imp10.hi Imp100.hi Imp1000.hi \
+       Imp500.hi Main.hi Mod10.hi OK.hi ShouldSucceed.hi Silly.hi Test.hi
+
 include $(TOP)/mk/target.mk
 
 
index 2d4838c..9eb64e0 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Re-exporting a module whose contents is partially hidden.
-module ShouldSucceed ( module List ) where
+module ShouldCompile ( module List ) where
 
 import List hiding ( sort )
 
index ff705b6..fdba3a8 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Checking that more than imported module can share a local
 -- !!! local alias.
-module ShouldSucceed where
+module ShouldCompile where
 
 import qualified List  as X
 import qualified Maybe as X
index c773f91..e9bd760 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Checking that an imported module may still have
 -- !!! a local alias without having used 'qualified'.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List  as X
 import Maybe as X
index 82438e8..16e31a4 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! Checking that a toplevel declaration 'f' in module M is accessible
 -- !!! as both 'f' and 'M.f' within the scope of M. Similarly for imported
 -- !!! entities.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List ( sort )
 
@@ -12,7 +12,7 @@ y :: Int
 y = x
 
 z :: Int
-z = ShouldSucceed.x
+z = ShouldCompile.x
 
 sortOf :: Ord a=> [a] -> [a]
 sortOf = List.sort
index 354fef5..5b87602 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that lazy name clashing works.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List ( reverse, sort )
 
@@ -10,7 +10,7 @@ sort = 4      -- but never used, so OK
 reverse :: Int -- Clashes with List.reverse, 
 reverse = 3    -- but the only uses are qualified
 
-x = ShouldSucceed.reverse
+x = ShouldCompile.reverse
 
 y = List.reverse
 
index ff705b6..fdba3a8 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Checking that more than imported module can share a local
 -- !!! local alias.
-module ShouldSucceed where
+module ShouldCompile where
 
 import qualified List  as X
 import qualified Maybe as X
index 4ffeaca..bea26c0 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! Checking that an imported module may still have
 -- !!! a local alias without having used 'qualified'.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List  as X
 import Maybe as X
index 82438e8..16e31a4 100644 (file)
@@ -1,7 +1,7 @@
 -- !!! Checking that a toplevel declaration 'f' in module M is accessible
 -- !!! as both 'f' and 'M.f' within the scope of M. Similarly for imported
 -- !!! entities.
-module ShouldSucceed where
+module ShouldCompile where
 
 import List ( sort )
 
@@ -12,7 +12,7 @@ y :: Int
 y = x
 
 z :: Int
-z = ShouldSucceed.x
+z = ShouldCompile.x
 
 sortOf :: Ord a=> [a] -> [a]
 sortOf = List.sort
index 62aba91..87589e9 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that lazy name clashing works
-module ShouldSucceed where
+module ShouldCompile where
 
 import List ( sort )
 
@@ -7,7 +7,7 @@ sort :: Int
 sort = 3
 
 foo :: Int
-foo = ShouldSucceed.sort
+foo = ShouldCompile.sort
 
 baz :: (Ord a) => [a] -> [a]
 baz = List.sort
index 3117391..b8fc047 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that empty declarations are permitted.
-module ShouldSucceed where
+module ShouldCompile where
 
 
 class Foo a where
index 2ba776d..3de6a9b 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking what's legal in the body of a class declaration.
-module ShouldSucceed where
+module ShouldCompile where
 
 class Foo a where {
   (--<>--) :: a -> a -> Int  ;
index ea6c04d..50efcf3 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that qualified method names are legal in instance body.
-module ShouldSucceed where
+module ShouldCompile where
 
 import Prelude hiding (Eq, (==))
 import Prelude as P (Eq,(==))
index 668d707..bd9a9b6 100644 (file)
@@ -1,5 +1,5 @@
 -- !!! Checking that you can hide a constructor
-module ShouldSucceed where
+module ShouldCompile where
 
 import Rn037Help hiding( C )
        -- C is the constructor, but we should
index 9b3adc5..4b2bfcc 100644 (file)
@@ -3,7 +3,7 @@
 -- only tickled by the simplifier
 
 -- type Foo a b = a -> (b -> a) -> b
-module Test where
+module ShouldCompile where
 
 (++++) :: (a -> (b -> a) -> b) -> (a -> (b -> a) -> b) -> a -> (b -> a) -> b
 x ++++ y = y
index 58e072f..b262f47 100644 (file)
@@ -1,6 +1,6 @@
 -- !!! class/instance mumble that failed Lint at one time
 --
-module Test where
+module ShouldCompile where
 class Foo a where
    op :: Int -> a -> Bool
 
index 3cd1af4..2f36696 100644 (file)
@@ -5,7 +5,7 @@ From: Julian Seward (DRL PhD) <sewardj@computer-science.manchester.ac.uk>
 Message-Id: <9412081138.AA16652@rdf009.cs.man.ac.uk>
 To: partain@dcs.gla.ac.uk
 -}
-module ShouldFail where
+module ShouldCompile where
 
 type IMonad a
    = IMonadState -> IMonadReturn a