[project @ 2002-07-02 16:27:38 by simonmar]
authorsimonmar <unknown>
Tue, 2 Jul 2002 16:27:38 +0000 (16:27 +0000)
committersimonmar <unknown>
Tue, 2 Jul 2002 16:27:38 +0000 (16:27 +0000)
After loading a package, set the context to something sensible

ghc/compiler/ghci/InteractiveUI.hs

index a203d94..62c89a7 100644 (file)
@@ -1,6 +1,6 @@
 {-# OPTIONS -#include "Linker.h" -#include "SchedAPI.h" #-}
 -----------------------------------------------------------------------------
--- $Id: InteractiveUI.hs,v 1.127 2002/07/02 10:16:35 wolfgang Exp $
+-- $Id: InteractiveUI.hs,v 1.128 2002/07/02 16:27:38 simonmar Exp $
 --
 -- GHC Interactive User Interface
 --
@@ -878,6 +878,8 @@ newPackages new_pkgs = do
     new_pkg_info <- getPackageDetails new_pkgs
     mapM_ (linkPackage dflags) (reverse new_pkg_info)
 
+  setContextAfterLoad []
+
 -----------------------------------------------------------------------------
 -- code for `:show'