[project @ 2001-02-28 11:44:39 by simonpj]
authorsimonpj <unknown>
Wed, 28 Feb 2001 11:44:40 +0000 (11:44 +0000)
committersimonpj <unknown>
Wed, 28 Feb 2001 11:44:40 +0000 (11:44 +0000)
Import/formatting wibbles

ghc/compiler/main/HscMain.lhs
ghc/compiler/main/Main.hs
ghc/compiler/rename/RnBinds.lhs
ghc/compiler/rename/RnNames.lhs
ghc/compiler/stgSyn/CoreToStg.lhs
ghc/compiler/typecheck/TcEnv.lhs

index b029b41..28a788b 100644 (file)
@@ -16,6 +16,9 @@ module HscMain ( HscResult(..), hscMain,
 import RdrHsSyn                ( RdrNameStmt )
 import Rename          ( renameStmt )
 import ByteCodeGen     ( byteCodeGen )
+import Id              ( Id, idName, idFlavour, modifyIdInfo )
+import IdInfo          ( setFlavourInfo, makeConstantFlavour )
+import HscTypes                ( InteractiveContext(..), TyThing(..) )
 #endif
 
 import HsSyn
@@ -44,8 +47,6 @@ import SimplStg               ( stg2stg )
 import CodeGen         ( codeGen )
 import CodeOutput      ( codeOutput )
 
-import Id              ( Id, idName, idFlavour, modifyIdInfo )
-import IdInfo          ( setFlavourInfo, makeConstantFlavour )
 import Module          ( ModuleName, moduleName, mkHomeModule, 
                          moduleUserString )
 import CmdLineOpts
@@ -60,7 +61,7 @@ import CmStaticInfo   ( GhciMode(..) )
 import HscStats                ( ppSourceStats )
 import HscTypes                ( ModDetails, ModIface(..), PersistentCompilerState(..),
                          PersistentRenamerState(..), ModuleLocation(..),
-                         HomeSymbolTable, InteractiveContext(..),
+                         HomeSymbolTable, 
                          NameSupply(..), PackageRuleBase, HomeIfaceTable, 
                          typeEnvClasses, typeEnvTyCons, emptyIfaceTable
                        )
index a5b094f..bfd2087 100644 (file)
@@ -1,6 +1,6 @@
 {-# OPTIONS -fno-warn-incomplete-patterns #-}
 -----------------------------------------------------------------------------
--- $Id: Main.hs,v 1.56 2001/02/27 15:25:18 simonmar Exp $
+-- $Id: Main.hs,v 1.57 2001/02/28 11:44:39 simonpj Exp $
 --
 -- GHC Driver program
 --
@@ -18,6 +18,7 @@ module Main (main) where
 
 #ifdef GHCI
 import InteractiveUI
+import Char            ( toLower )
 #endif
 
 #ifndef mingw32_TARGET_OS
index 6ab814b..8a2932f 100644 (file)
@@ -263,8 +263,8 @@ This is done {\em either} by pass 3 (for the top-level bindings),
 \begin{code}
 rn_mono_binds :: [RenamedSig]          -- Signatures attached to this group
              -> RdrNameMonoBinds       
-             -> RnMS (RenamedHsBinds,  -- 
-                        FreeVars)      -- Free variables
+             -> RnMS (RenamedHsBinds,  -- Dependency analysed
+                      FreeVars)        -- Free variables
 
 rn_mono_binds siglist mbinds
   =
index 9e2b777..76f7bdc 100644 (file)
@@ -27,7 +27,6 @@ import RnMonad
 import FiniteMap
 import PrelNames       ( pRELUDE_Name, mAIN_Name, main_RDR_Unqual, isUnboundName )
 import UniqFM          ( lookupUFM )
-import Bag             ( bagToList )
 import Module          ( ModuleName, moduleName, WhereFrom(..) )
 import NameSet
 import Name            ( Name, nameSrcLoc, nameOccName,  nameEnvElts )
index e5d3c41..a5e0e85 100644 (file)
@@ -876,9 +876,8 @@ minusFVBinders vs fv = foldr minusFVBinder fv vs
 minusFVBinder :: Id -> FreeVarsInfo -> FreeVarsInfo
 minusFVBinder v fv | isId v && opt_KeepStgTypes
                   = (fv `delVarEnv` v) `unionFVInfo` 
-                        tyvarFVInfo (tyVarsOfType (idType v))
-                  | otherwise
-                  =  fv `delVarEnv` v
+                    tyvarFVInfo (tyVarsOfType (idType v))
+                  | otherwise = fv `delVarEnv` v
        -- When removing a binder, remember to add its type variables
        -- c.f. CoreFVs.delBinderFV
 
index 4d9dbb8..20b0f90 100644 (file)
@@ -58,7 +58,7 @@ import TyCon          ( TyCon )
 import Class           ( Class, ClassOpItem, ClassContext )
 import Name            ( Name, OccName, NamedThing(..), 
                          nameOccName, getSrcLoc, mkLocalName, isLocalName,
-                         nameIsLocalOrFrom, nameModule_maybe
+                         nameIsLocalOrFrom
                        )
 import Name            ( NameEnv, lookupNameEnv, nameEnvElts, 
                          extendNameEnvList, emptyNameEnv, plusNameEnv )