From 214257ff55f03759b758476dd8337629cb8e9268 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 16 Jul 2023 22:30:36 -0400 Subject: [PATCH] FIX haskell-flycheck bug --- etc/conf.org | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/etc/conf.org b/etc/conf.org index a993a77..1f27d1d 100644 --- a/etc/conf.org +++ b/etc/conf.org @@ -1108,7 +1108,20 @@ I have also found this to be much simpler and conflicting with other packages su ;; flycheck setup (needed to get flycheck to pay attention to flags/extensions ;; in cabal files) (use-package flycheck-haskell - :straight t) + :straight t + :after flycheck + :config + ;; fix whatever they did here: https://github.com/flycheck/flycheck-haskell/pull/118 + (setq flycheck-haskell-runghc-command + (let ((stack-exe (funcall flycheck-executable-find "stack"))) + `(,stack-exe "--verbosity" "silent" "runghc" "--no-ghc-package-path" "--" "-i" + "-packageCabal" + "-packagebase" + "-packagebytestring" + "-packagecontainers" + "-packageprocess" + "-packagedirectory" + "-packagefilepath")))) (use-package haskell-mode :straight t