branch: elpa/haskell-tng-mode commit 6e938d0321b9c6c0b62131bffb0535acc9055f2c Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
workaround cabal bug --- haskell-tng-hsinspect.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el index 55a0727..31ba8ee 100644 --- a/haskell-tng-hsinspect.el +++ b/haskell-tng-hsinspect.el @@ -16,7 +16,11 @@ ;; TODO automatically installing hsinspect under hsinspect-ghc-X (defcustom haskell-tng-hsinspect - '("cabal" "v2-exec" "-v0" "--") + ;; TODO https://github.com/haskell/cabal/issues/6182 + ;; + ;; the optimisation level (and compiler) must match what the user typed or + ;; local packages aren't visible. + '("cabal" "v2-exec" "-v0" "-O0" "--") "Launch command for the `hsinspect' external tool." :type 'listp :group 'haskell-tng)