Skip to content

Commit 56a1c10

Browse files
committed
Merge pull request #887 from cmears/bugfix/startup
Fix out-of-order session startup.
2 parents 513d589 + 250526b commit 56a1c10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

haskell-commands.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ You can create new session using function `haskell-session-make'."
8787
:state process
8888

8989
:go (lambda (process)
90-
(haskell-process-send-string process ":set prompt \"\\4\"")
90+
;; We must set the prompt last, so that this command as a
91+
;; whole produces only one prompt marker as a response.
9192
(haskell-process-send-string process "Prelude.putStrLn \"\"")
92-
(haskell-process-send-string process ":set -v1"))
93+
(haskell-process-send-string process ":set -v1")
94+
(haskell-process-send-string process ":set prompt \"\\4\""))
9395

9496
:live (lambda (process buffer)
9597
(when (haskell-process-consume

0 commit comments

Comments
 (0)