aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-02-19 20:42:41 +0100
committerTom Smeding <tom@tomsmeding.com>2026-02-19 20:42:41 +0100
commitab1be46f46c20c17705898ba8bffa36ef13bc7e5 (patch)
tree1aaa3b852c44a59ca839e06f39b508a91b8b61e9 /src
parent3b215d80b5e8f1271a7076a24e6a5a4353154246 (diff)
Ignore :cd and :edit
Thanks int-e
Diffstat (limited to 'src')
-rw-r--r--src/Ghci.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Ghci.hs b/src/Ghci.hs
index dbd901b..3d7fd53 100644
--- a/src/Ghci.hs
+++ b/src/Ghci.hs
@@ -91,6 +91,8 @@ runStmtClever ghci pset line =
| "set" `startsWith` cmd -> return (ghci, Ignored)
cmd : _
| "def" `startsWith` cmd -> return (ghci, Ignored)
+ | "cd" `startsWith` cmd -> return (ghci, Ignored) -- useless in irc
+ | "edit" `startsWith` cmd -> return (ghci, Ignored) -- useless in irc, may break prompt detection etc.
| "quit" `startsWith` cmd -> do
terminateGhci ghci
putStrLn "ghci: restarting due to :quit"