Commit 57505177 authored by Simon Marlow's avatar Simon Marlow
Browse files

parsing tweak for :break

parent 53a442f1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment