diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-05-18 14:56:35 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-05-18 14:56:35 +0000 |
commit | 347780ec5f2a3c77e58ab7c6cd06b7557f44a82c (patch) | |
tree | 105d17dbacbdc50a7c319d8e0f841489974ca7d9 | |
parent | 27ebe4c5edb356cec5c9b12f357404ae998bc905 (diff) | |
download | haskell-347780ec5f2a3c77e58ab7c6cd06b7557f44a82c.tar.gz |
'import M' is now the same as ':module +M' at the prompt
Seemed like a reasonable thing to do, and only 1 line
-rw-r--r-- | compiler/ghci/InteractiveUI.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 486d40380d..3bda8bdf08 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -555,6 +555,7 @@ runCommandEval c = ghciHandle handleEval (doCommand c) runStmt :: String -> SingleStep -> GHCi Bool runStmt stmt step | null (filter (not.isSpace) stmt) = return False + | ["import", mod] <- words stmt = keepGoing setContext ('+':mod) | otherwise = do st <- getGHCiState session <- getSession |