branch: elpa/haskell-ts-mode commit c2d4c887384cbea6887095bd1f217d78f927cf96 Author: pranshu <pranshusharma...@gmail.com> Commit: pranshu <pranshusharma...@gmail.com>
run haskell changes Thanks to Philip Kaludercic --- haskell-ts-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el index c9ebce9a21..5410ce73bc 100644 --- a/haskell-ts-mode.el +++ b/haskell-ts-mode.el @@ -381,10 +381,10 @@ (defun haskell-ts-run-haskell() (interactive) - (when (not (comint-check-proc "*haskell*")) - (set-buffer (apply (function make-comint) - "haskell" "ghci" nil `(,buffer-file-name)))) - (pop-to-buffer-same-window "*haskell*")) + (pop-to-buffer-same-window + (if (comint-check-proc "*haskell*") + "*haskell*" + (make-comint "haskell" "ghci" nil buffer-file-name)))) (defun haskell-ts-haskell-session () (get-buffer-process "*haskell*"))