FIX haskell-flycheck bug

This commit is contained in:
Nathan Dwarshuis 2023-07-16 22:30:36 -04:00
parent 7420de7ca3
commit 214257ff55
1 changed files with 14 additions and 1 deletions

View File

@ -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