lang/haskell: add intero support #158

To use dante instead, change `haskell` to `(haskell +dante)` in
~/.emacs.d/init.el.
This commit is contained in:
Henrik Lissner
2017-08-08 19:14:58 +02:00
parent d173ae1ed8
commit 56382f1215
4 changed files with 55 additions and 15 deletions

View File

@ -0,0 +1,13 @@
;;; 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))