doomemacs/modules/lang/haskell/+intero.el
2018-02-14 07:46:38 -05:00

16 lines
447 B
EmacsLisp

;;; lang/haskell/+intero.el -*- lexical-binding: t; -*-
;;;###if (featurep! +intero)
(def-package! intero
:hook (haskell-mode . intero-mode)
:config
(unless (executable-find "stack")
(warn! "Couldn't find stack. Intero has been disabled."))
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
(set! :lookup 'haskell-mode :definition #'intero-goto-definition))
(def-package! hindent
:hook (haskell-mode . hindent-mode))