Skip to content

Commit

Permalink
Fix getLine with no stdout output
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed May 26, 2014
1 parent c2206c9 commit 69ead72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haskell-interactive-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ Key bindings:
haskell-interactive-mode-prompt-start
nil))


(defun haskell-interactive-handle-expr ()
"Handle an inputted expression at the REPL."
(when (haskell-interactive-at-prompt)
Expand Down Expand Up @@ -258,13 +257,15 @@ Key bindings:
(let ((session (haskell-session))
(process (haskell-process))
(lines (length (split-string expr "\n"))))
(goto-char (point-max))
(haskell-process-queue-command
process
(make-haskell-command
:state (list session process expr 0)
:go (lambda (state)
(goto-char (point-max))
(insert "\n")
(setq haskell-interactive-mode-result-end
(point-max))
(haskell-process-send-string (cadr state)
(haskell-interactive-mode-multi-line (caddr state)))
(haskell-process-set-evaluating (cadr state) t))
Expand Down

0 comments on commit 69ead72

Please sign in to comment.