Skip to content

Commit 2c0bc0f

Browse files
committed
Improve interactivity in REPL
E.g. λ> do l <- getLine; p <- getLine; print (l ++ p) hey hey "heyhey" λ> do l <- getLine; putStrLn "ok"; p <- getLine; print (l ++ p) hi ok world "hiworld"
1 parent 1eed0b3 commit 2c0bc0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

haskell-interactive-mode.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ be nil.")
274274
haskell-interactive-mode-result-end
275275
(point))))
276276
(insert "\n")
277+
;; Bring the marker forward
278+
(setq haskell-interactive-mode-result-end
279+
(point-max))
277280
(haskell-process-set-sent-stdin process t)
278281
(haskell-process-send-string process string)))
279282
;; Otherwise we start a normal evaluation call.

0 commit comments

Comments
 (0)