From 11f7b9b41aab584066e9aaba7d06cc10303c7bcb Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Wed, 4 Aug 2021 18:06:49 +0300 Subject: [PATCH] docs(haskell): improve doctor checks Co-authored-by: Daanturo --- modules/lang/haskell/doctor.el | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/modules/lang/haskell/doctor.el b/modules/lang/haskell/doctor.el index d4d89a6fc..726d83ede 100644 --- a/modules/lang/haskell/doctor.el +++ b/modules/lang/haskell/doctor.el @@ -6,6 +6,21 @@ "This module requires (:tools lsp)") (unless (executable-find "cabal") - (warn! "Couldn't find cabal, haskell-mode may have issues")) -(unless (executable-find "hlint") - (warn! "Couldn't find hlint. Flycheck may have issues in haskell-mode")) + (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) + (not (executable-find "brittany"))) + (warn! "Couldn't find brittany. Code formatting will not work. + Install it or enable +lsp.")) + +(when (and (featurep! +lsp) + (not (executable-find "haskell-language-server-wrapper"))) + (warn! "Couldn't find haskell-language-server."))