2017-08-08 19:14:58 +02:00
|
|
|
;;; lang/haskell/+dante.el -*- lexical-binding: t; -*-
|
2017-12-10 16:57:51 -05:00
|
|
|
;;;###if (featurep! +dante)
|
2017-08-08 19:14:58 +02:00
|
|
|
|
|
|
|
(def-package! dante
|
|
|
|
:after haskell-mode
|
2017-12-10 16:59:34 -05:00
|
|
|
:hook (haskell-mode . dante-mode)
|
2017-08-08 19:14:58 +02:00
|
|
|
:config
|
|
|
|
(unless (executable-find "cabal")
|
2018-02-14 07:40:05 -05:00
|
|
|
(warn! "Couldn't find cabal, haskell-mode may have issues"))
|
2017-08-08 19:14:58 +02:00
|
|
|
|
2018-02-14 07:40:05 -05:00
|
|
|
(add-hook 'haskell-mode-hook #'interactive-haskell-mode)
|
2017-10-03 00:52:16 +02:00
|
|
|
(add-hook 'dante-mode-hook #'flycheck-mode))
|
2017-08-08 19:14:58 +02:00
|
|
|
|
2018-03-01 01:12:23 -05:00
|
|
|
|
|
|
|
(def-package! company-ghc
|
|
|
|
:when (featurep! :completion company)
|
|
|
|
:after haskell-mode
|
|
|
|
:init
|
|
|
|
(add-hook 'haskell-mode-hook #'ghc-comp-init)
|
|
|
|
:config
|
|
|
|
(unless (executable-find "ghc-mod")
|
|
|
|
(warn! "Couldn't find ghc-mod on PATH. Code completion is disabled."))
|
|
|
|
|
|
|
|
(setq company-ghc-show-info 'oneline)
|
|
|
|
(set! :company-backend 'haskell-mode #'company-ghc))
|