mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/haskell: improve REPL support #752
This commit is contained in:
15
modules/lang/haskell/autoload.el
Normal file
15
modules/lang/haskell/autoload.el
Normal file
@ -0,0 +1,15 @@
|
||||
;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +haskell-repl-buffer ()
|
||||
"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")
|
||||
(display-buffer (+haskell-repl-buffer)))
|
||||
|
Reference in New Issue
Block a user