aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Ghci.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Ghci.hs b/src/Ghci.hs
index d3540cb..e42ccbc 100644
--- a/src/Ghci.hs
+++ b/src/Ghci.hs
@@ -90,9 +90,10 @@ runStmtClever ghci pset line =
case dropWhile isSpace line of
':' : line1 -> case words (map toLower (dropWhile isSpace line1)) of
('{':_) : _ -> return (ghci, Ignored) -- will break prompt
- cmd : "prompt" : _
- | "set" `startsWith` cmd -> return (ghci, Ignored)
- | "unset" `startsWith` cmd -> return (ghci, Ignored)
+ setish : promptish : _
+ | ("set" `startsWith` setish || "unset" `startsWith` setish)
+ , ("prompt" `startsWith` promptish || "prompt-" `startsWith` promptish)
+ -> return (ghci, Ignored)
cmd : _
| "def" `startsWith` cmd -> return (ghci, Ignored)
| "cd" `startsWith` cmd -> return (ghci, Ignored) -- useless in irc