doomemacs/modules/lang/haskell/autoload.el

15 lines
420 B
EmacsLisp
Raw Normal View History

;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
2018-07-30 12:10:11 +02:00
(defun +haskell-repl-buffer (arg)
"Returns the appropriate Haskell REPL buffer."
(if (featurep! +intero)
(intero-repl-buffer arg)
(haskell-session-interactive-buffer (haskell-session))))
;;;###autoload
(defun +haskell/repl (&optional arg)
"Opens a Haskell REPL."
(interactive "P")
2018-07-30 12:10:11 +02:00
(display-buffer (+haskell-repl-buffer arg)))