[project @ 2003-06-25 16:24:56 by simonpj]
authorsimonpj <unknown>
Wed, 25 Jun 2003 16:24:58 +0000 (16:24 +0000)
committersimonpj <unknown>
Wed, 25 Jun 2003 16:24:58 +0000 (16:24 +0000)
Wibbles; esp fixing the stage2 build

ghc/compiler/Makefile
ghc/compiler/deSugar/DsExpr.lhs
ghc/compiler/typecheck/TcRnDriver.lhs
ghc/compiler/types/TyCon.lhs

index a8afae0..4e0f5b7 100644 (file)
@@ -368,7 +368,6 @@ ifeq "$(HOSTPLATFORM)" "hppa1.1-hp-hpux9"
 rename/RnMonad_HC_OPTS                 =  -O2 -O2-for-C
 endif
 
-utils/StringBuffer_HC_OPTS     = -fvia-C -fno-prune-tydecls
 utils/Digraph_HC_OPTS          = -fglasgow-exts 
 
 ifeq "$(bootstrapped)" "YES"
index f9d0a6c..2865f94 100644 (file)
@@ -629,7 +629,7 @@ dsDo do_or_lc stmts ids result_ty
            returnDs (mkIfThenElse expr2 rest 
                                   (App (App fail_id (Type b_ty)) core_msg))
     
-       go (LetStmt binds : stmts )
+       go (LetStmt binds : stmts)
          = go stmts            `thenDs` \ rest   ->
            dsLet binds rest
            
index bd65fc4..1914c96 100644 (file)
@@ -408,8 +408,8 @@ tc_stmts stmts
        -- OK, we're ready to typecheck the stmts
        traceTc (text "tcs 2") ;
        ((ids, tc_stmts), lie) <- 
-               getLIE                                  $ 
-               tcStmtsAndThen combine stmt_ctxt stmts  $ 
+               getLIE                                          $ 
+               tcStmtsAndThen combine stmt_ctxt all_stmts      $ 
                do {
                    -- Look up the names right in the middle,
                    -- where they will all be in scope
index ca41d14..6f1ac54 100644 (file)
@@ -261,7 +261,7 @@ tyConGenIds tycon = case tyConGenInfo tycon of
 -- This is the making of a TyCon. Just the same as the old mkAlgTyCon,
 -- but now you also have to pass in the generic information about the type
 -- constructor - you can get hold of it easily (see Generics module)
-mkAlgTyCon name kind tyvars theta argvrcs cons sels flavour rec 
+mkAlgTyCon name kind tyvars theta argvrcs cons sels flavour is_rec 
              gen_info
   = AlgTyCon { 
        tyConName               = name,
@@ -275,11 +275,11 @@ mkAlgTyCon name kind tyvars theta argvrcs cons sels flavour rec
        selIds                  = sels,
        algTyConClass           = Nothing,
        algTyConFlavour         = flavour,
-       algTyConRec             = rec,
+       algTyConRec             = is_rec,
        genInfo                 = gen_info
     }
 
-mkClassTyCon name kind tyvars argvrcs con clas flavour rec
+mkClassTyCon name kind tyvars argvrcs con clas flavour is_rec
   = AlgTyCon { 
        tyConName               = name,
        tyConUnique             = nameUnique name,
@@ -292,7 +292,7 @@ mkClassTyCon name kind tyvars argvrcs con clas flavour rec
        selIds                  = [],
        algTyConClass           = Just clas,
        algTyConFlavour         = flavour,
-       algTyConRec             = rec,
+       algTyConRec             = is_rec,
        genInfo                 = Nothing
     }