branch: elpa/haskell-tng-mode commit be4cc15888979f95b1b4e82a0bf27cb0d123f3f3 Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
better hsinspect command --- haskell-tng-compile.el | 3 +-- haskell-tng-hsinspect.el | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/haskell-tng-compile.el b/haskell-tng-compile.el index be8be27..14e3275 100644 --- a/haskell-tng-compile.el +++ b/haskell-tng-compile.el @@ -62,8 +62,7 @@ (defvar haskell-tng--compile-history ;; Prefer --enable-tests due to ;; https://github.com/haskell/cabal/issues/6114 - '("cabal v2-build -O0 --enable-tests :all:libraries" - "cabal v2-build -O0 --enable-tests " + '("cabal v2-build -O0 --enable-tests :all" "cabal v2-run -O0 --enable-tests tasty -- ")) (defvar-local haskell-tng--compile-command nil) (defvar-local haskell-tng--compile-alt "cabal v2-clean") diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el index fbc905a..bed4908 100644 --- a/haskell-tng-hsinspect.el +++ b/haskell-tng-hsinspect.el @@ -34,7 +34,7 @@ name of the symbol at point in the minibuffer." ;; no need to compile tests, use O0 so it is faster "hsinspect-init () {\n" " cabal v2-build -O0 :all &&\n" - " cabal v2-exec -O0 -- sh -c 'cat $GHC_ENVIRONMENT > .hsinspect.env'\n" + " cabal v2-exec -O0 -v0 -- sh -c 'cat $GHC_ENVIRONMENT > .hsinspect.env'\n" "}\n" "hsinspect-init")) ;;;###autoload