X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;h=598341ad4c071bed3b87ecb340733788e16a769b;hb=6fb850636267af7a0a52322c0a670963034ae784;hp=ed90e99da5aa7df614b1667dcbea41d375f22cf0;hpb=dab5f1b5a1df0fdff2c9942ca311616ad472adcd;p=ghc-hetmet.git diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index ed90e99..598341a 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -102,7 +102,6 @@ ghciWelcomeMsg = "GHCi, version " ++ cProjectVersion ++ cmdName :: Command -> String cmdName (n,_,_,_) = n -macros_ref :: IORef [Command] GLOBAL_VAR(macros_ref, [], [Command]) builtin_commands :: [Command] @@ -317,10 +316,9 @@ interactiveUI session srcs maybe_exprs = do when is_tty $ do Readline.initialize - -- XXX Should we be catching exceptions thrown by readHistory? withGhcAppData (\dir -> Readline.readHistory (dir "ghci_history")) - (return ()) + (return True) Readline.setAttemptedCompletionFunction (Just completeWord) --Readline.parseAndBind "set show-all-if-ambiguous 1" @@ -356,9 +354,8 @@ interactiveUI session srcs maybe_exprs = do #ifdef USE_EDITLINE Readline.stifleHistory 100 - -- XXX Should we be catching exceptions thrown by readHistory? withGhcAppData (\dir -> Readline.writeHistory (dir "ghci_history")) - (return ()) + (return True) Readline.resetTerminal Nothing #endif