parsing tweak for :break
authorSimon Marlow <simonmar@microsoft.com>
Thu, 13 Mar 2008 18:29:36 +0000 (18:29 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 13 Mar 2008 18:29:36 +0000 (18:29 +0000)
compiler/ghci/InteractiveUI.hs

index 8b1566a..c865943 100644 (file)
@@ -2040,7 +2040,7 @@ breakSwitch :: Session -> [String] -> GHCi ()
 breakSwitch _session [] = do
    io $ putStrLn "The break command requires at least one argument."
 breakSwitch session (arg1:rest) 
-   | looksLikeModuleName arg1 = do
+   | looksLikeModuleName arg1 && not (null rest) = do
         mod <- wantInterpretedModule arg1
         breakByModule mod rest
    | all isDigit arg1 = do