2018-03-20 21:19:37 -04:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/haskell/doctor.el
|
2018-03-12 13:16:16 -04:00
|
|
|
|
2019-04-22 03:10:25 -04:00
|
|
|
(assert! (or (not (featurep! +lsp))
|
|
|
|
(featurep! :tools lsp))
|
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2021-08-03 19:20:45 +03:00
|
|
|
(unless (executable-find "cabal")
|
2021-08-04 18:06:49 +03:00
|
|
|
(warn! "Couldn't find cabal. haskell-mode may have issues."))
|
|
|
|
|
|
|
|
(unless (executable-find "hoogle")
|
|
|
|
(warn! "Couldn't find hoogle. Documentation searching will not work."))
|
|
|
|
|
|
|
|
(unless (or (featurep! +lsp)
|
|
|
|
(executable-find "hlint"))
|
|
|
|
(warn! "Couldn't find hlint. Flycheck may have issues in haskell-mode.
|
|
|
|
Install it or enable +lsp."))
|
|
|
|
|
|
|
|
(when (and (featurep! :editor format)
|
2022-01-15 18:30:57 +00:00
|
|
|
(not (featurep! +lsp))
|
2021-08-04 18:06:49 +03:00
|
|
|
(not (executable-find "brittany")))
|
2022-01-15 18:30:57 +00:00
|
|
|
(warn! "Couldn't find brittany. Code formatting will not work.
|
2021-08-04 18:06:49 +03:00
|
|
|
Install it or enable +lsp."))
|
|
|
|
|
|
|
|
(when (and (featurep! +lsp)
|
|
|
|
(not (executable-find "haskell-language-server-wrapper")))
|
|
|
|
(warn! "Couldn't find haskell-language-server."))
|