lang/haskell: refactor +dante submodule

This commit is contained in:
Henrik Lissner
2017-12-10 16:59:34 -05:00
parent 96a232b2ae
commit c85fd98350

View File

@ -3,9 +3,10 @@
(def-package! dante (def-package! dante
:after haskell-mode :after haskell-mode
:init :hook (haskell-mode . dante-mode)
(add-hook! 'haskell-mode-hook #'(dante-mode interactive-haskell-mode))
:config :config
(add-hook 'haskell-mode-hook #'interactive-haskell-mode)
(unless (executable-find "cabal") (unless (executable-find "cabal")
(warn "haskell-mode: couldn't find cabal") (warn "haskell-mode: couldn't find cabal")
(remove-hook 'haskell-mode-hook #'dante-mode)) (remove-hook 'haskell-mode-hook #'dante-mode))