X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FMain.hs;h=99cd07a3ceeec91cf902b5eaf15966f5d8c09197;hb=9ac80e8f546551607ed2193d884fa9252f166f98;hp=13ec18f5b92a63fbdc418a4550415e6b1dfa21bd;hpb=3a481f5449f5e5523ac20917f2b723daa1fbad2f;p=ghc-hetmet.git diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 13ec18f..99cd07a 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,6 +1,6 @@ {-# OPTIONS -W -fno-warn-incomplete-patterns #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.31 2000/11/21 16:31:51 sewardj Exp $ +-- $Id: Main.hs,v 1.32 2000/11/22 17:51:16 simonmar Exp $ -- -- GHC Driver program -- @@ -298,10 +298,11 @@ beginInteractive = throwDyn (OtherError "not build for interactive use") #else beginInteractive mods = do state <- cmInit Interactive - case mods of - [] -> return () - [mod] -> do cmLoadModule state mod; return () - _ -> throwDyn (UsageError - "only one module allowed with --interactive") - interactiveUI state + (state', ok, ms) + <- case mods of + [] -> return (state, True, []) + [mod] -> cmLoadModule state mod + _ -> throwDyn (UsageError + "only one module allowed with --interactive") + interactiveUI state' ms #endif