lang/haskell: improve REPL support #752

This commit is contained in:
Henrik Lissner 2018-07-14 21:43:12 +02:00
parent e97fd7558c
commit a76c080930
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 1 deletions

View 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)))