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