[project @ 2001-02-26 15:40:54 by simonpj]
authorsimonpj <unknown>
Mon, 26 Feb 2001 15:40:54 +0000 (15:40 +0000)
committersimonpj <unknown>
Mon, 26 Feb 2001 15:40:54 +0000 (15:40 +0000)
Make it build without GHCI

ghc/compiler/compMan/CmLink.lhs

index 9b1045d..fb34f69 100644 (file)
@@ -8,11 +8,11 @@ module CmLink ( Linkable(..),  Unlinked(..),
                filterModuleLinkables, 
                findModuleLinkable_maybe,
                LinkResult(..),
-               updateClosureEnv,
                 link, 
                unload,
                 PersistentLinkerState{-abstractly!-}, emptyPLS,
 #ifdef GHCI
+               updateClosureEnv,
                linkExpr
 #endif
   ) where
@@ -90,10 +90,12 @@ emptyPLS = return (PersistentLinkerState { closure_env = emptyFM,
 emptyPLS = return (PersistentLinkerState {})
 #endif
 
+#ifdef GHCI
 updateClosureEnv :: PersistentLinkerState -> [(Name,HValue)] 
        -> IO PersistentLinkerState
 updateClosureEnv pls new_bindings
   = return pls{ closure_env = addListToFM (closure_env pls) new_bindings }
+#endif
 
 -----------------------------------------------------------------------------
 -- Unloading old objects ready for a new compilation sweep.