fix(haskell): require haskell-interactive-mode when opening repl

Otherwise the symbol `haskell-session-interactive-buffer` will not be
present if a Haskell buffer has not already been opened.
This commit is contained in:
Colin Woodbury 2023-02-26 19:07:12 +09:00 committed by Henrik Lissner
parent 8063b02a80
commit d9f3d5c2f1

View file

@ -4,6 +4,7 @@
(defun +haskell/open-repl (&optional arg) (defun +haskell/open-repl (&optional arg)
"Opens a Haskell REPL." "Opens a Haskell REPL."
(interactive "P") (interactive "P")
(require 'haskell-interactive-mode)
(if-let (window (if-let (window
(display-buffer (display-buffer
(haskell-session-interactive-buffer (haskell-session)))) (haskell-session-interactive-buffer (haskell-session))))