lang/haskell: fix +haskell/open-repl
REPL handlers must return a buffer but display-buffer returns a window.
This commit is contained in:
parent
2c81ee4d98
commit
a49a9fee3a
1 changed files with 8 additions and 4 deletions
|
@ -4,7 +4,11 @@
|
|||
(defun +haskell/open-repl (&optional arg)
|
||||
"Opens a Haskell REPL."
|
||||
(interactive "P")
|
||||
(display-buffer
|
||||
(if (featurep! +intero)
|
||||
(intero-repl-buffer arg)
|
||||
(haskell-session-interactive-buffer (haskell-session)))))
|
||||
(if-let*
|
||||
((window
|
||||
(display-buffer
|
||||
(if (featurep! +intero)
|
||||
(intero-repl-buffer arg)
|
||||
(haskell-session-interactive-buffer (haskell-session))))))
|
||||
(window-buffer window)
|
||||
(error "Failed to display Haskell REPL")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue