mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/haskell: fix +haskell/open-repl
REPL handlers must return a buffer but display-buffer returns a window.
This commit is contained in:
@ -4,7 +4,11 @@
|
|||||||
(defun +haskell/open-repl (&optional arg)
|
(defun +haskell/open-repl (&optional arg)
|
||||||
"Opens a Haskell REPL."
|
"Opens a Haskell REPL."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(display-buffer
|
(if-let*
|
||||||
(if (featurep! +intero)
|
((window
|
||||||
(intero-repl-buffer arg)
|
(display-buffer
|
||||||
(haskell-session-interactive-buffer (haskell-session)))))
|
(if (featurep! +intero)
|
||||||
|
(intero-repl-buffer arg)
|
||||||
|
(haskell-session-interactive-buffer (haskell-session))))))
|
||||||
|
(window-buffer window)
|
||||||
|
(error "Failed to display Haskell REPL")))
|
||||||
|
Reference in New Issue
Block a user