doomemacs/modules/lang/haskell/+dante.el
Henrik Lissner 061e71a846
[breaking] lang/haskell: refactor + require flags #158
The +intero/+dante module flags are now required; there is no default.
2017-10-03 02:57:00 +02:00

13 lines
372 B
EmacsLisp

;;; lang/haskell/+dante.el -*- lexical-binding: t; -*-
(def-package! dante
:after haskell-mode
:init
(add-hook! 'haskell-mode-hook #'(dante-mode interactive-haskell-mode))
:config
(unless (executable-find "cabal")
(warn "haskell-mode: couldn't find cabal")
(remove-hook 'haskell-mode-hook #'dante-mode))
(add-hook 'dante-mode-hook #'flycheck-mode))