projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ebe4c
)
'import M' is now the same as ':module +M' at the prompt
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 18 May 2007 14:56:35 +0000
(14:56 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 18 May 2007 14:56:35 +0000
(14:56 +0000)
Seemed like a reasonable thing to do, and only 1 line
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
486d403
..
3bda8bd
100644
(file)
--- 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