[project @ 2000-11-07 16:03:38 by simonmar]
authorsimonmar <unknown>
Tue, 7 Nov 2000 16:03:38 +0000 (16:03 +0000)
committersimonmar <unknown>
Tue, 7 Nov 2000 16:03:38 +0000 (16:03 +0000)
Fix compilation with 4.08.1

ghc/compiler/compMan/CmLink.lhs
ghc/compiler/compMan/CompManager.lhs
ghc/compiler/main/HscMain.lhs
ghc/compiler/main/Interpreter.hs [new file with mode: 0644]
ghc/compiler/typecheck/TcModule.lhs

index 3ec42dd..8a4c800 100644 (file)
@@ -12,8 +12,7 @@ module CmLink ( Linkable(..),  Unlinked(..),
                 PersistentLinkerState{-abstractly!-}, emptyPLS )
 where
 
                 PersistentLinkerState{-abstractly!-}, emptyPLS )
 where
 
-import StgInterp       ( linkIModules, ClosureEnv, ItblEnv )
-import Linker          ( loadObj, resolveObjs )
+import Interpreter
 import CmStaticInfo    ( PackageConfigInfo )
 import Module          ( ModuleName, PackageName )
 import InterpSyn       ( UnlinkedIBind, HValue, binder )
 import CmStaticInfo    ( PackageConfigInfo )
 import Module          ( ModuleName, PackageName )
 import InterpSyn       ( UnlinkedIBind, HValue, binder )
index 644163c..327f716 100644 (file)
@@ -23,7 +23,7 @@ import CmLink                 ( PersistentLinkerState, emptyPLS, Linkable(..),
                          link, LinkResult(..), 
                          filterModuleLinkables, modname_of_linkable,
                          is_package_linkable )
                          link, LinkResult(..), 
                          filterModuleLinkables, modname_of_linkable,
                          is_package_linkable )
-import InterpSyn       ( HValue )
+import Interpreter     ( HValue )
 import CmSummarise     ( summarise, ModSummary(..), 
                          name_of_summary, deps_of_summary,
                          mimp_name, ms_get_imports )
 import CmSummarise     ( summarise, ModSummary(..), 
                          name_of_summary, deps_of_summary,
                          mimp_name, ms_get_imports )
index d25fd12..8ada4be 100644 (file)
@@ -46,10 +46,7 @@ import UniqSupply    ( mkSplitUniqSupply )
 
 import Bag             ( emptyBag )
 import Outputable
 
 import Bag             ( emptyBag )
 import Outputable
-#ifdef GHCI
-import StgInterp       ( stgToInterpSyn, ItblEnv )
-import InterpSyn       ( UnlinkedIBind )
-#endif
+import Interpreter
 import HscStats                ( ppSourceStats )
 import HscTypes                ( ModDetails, ModIface(..), PersistentCompilerState(..),
                          PersistentRenamerState(..), ModuleLocation(..),
 import HscStats                ( ppSourceStats )
 import HscTypes                ( ModDetails, ModIface(..), PersistentCompilerState(..),
                          PersistentRenamerState(..), ModuleLocation(..),
diff --git a/ghc/compiler/main/Interpreter.hs b/ghc/compiler/main/Interpreter.hs
new file mode 100644 (file)
index 0000000..6496eba
--- /dev/null
@@ -0,0 +1,38 @@
+-----------------------------------------------------------------------------
+-- $Id: Interpreter.hs,v 1.1 2000/11/07 16:03:38 simonmar Exp $
+--
+-- Interpreter subsystem wrapper
+--
+-- (c) The University of Glasgow 2000
+--
+-----------------------------------------------------------------------------
+
+module Interpreter (
+#ifdef GHCI
+       module StgInterp,
+       module InterpSyn,
+       module Linker
+#else
+    ClosureEnv, ItblEnv,
+    linkIModules,
+    stgToInterpSyn,
+    HValue,
+    UnlinkedIBinds,
+    loadObjs, resolveObjs,
+#endif
+  ) where
+
+#ifdef GHCI
+import StgInterp
+import InterpSyn
+import Linker
+#else
+type ClosureEnv = ()
+type ItblEnv = ()
+linkIModules = error "linkIModules"
+stgToInterpSyn = error "linkIModules"
+type HValue = ()
+type UnlinkedIBinds = ()
+loadObjs = error "loadObjs"
+resolveObjs = error "loadObjs"
+#endif
index 1018843..9c4bf6e 100644 (file)
@@ -252,7 +252,7 @@ tcModule pcs hst get_fixity this_mod decls unf_env
                          tc_insts   = map iDFunId local_inst_info,
                          tc_fords   = foi_decls ++ foe_decls',
                          tc_rules   = local_rules'
                          tc_insts   = map iDFunId local_inst_info,
                          tc_fords   = foi_decls ++ foe_decls',
                          tc_rules   = local_rules'
-                        })
+                        }
     )
 
 get_binds decls = foldr ThenBinds EmptyBinds [binds | ValD binds <- decls]
     )
 
 get_binds decls = foldr ThenBinds EmptyBinds [binds | ValD binds <- decls]