Skip to content

Commit b2afa01

Browse files
committed
Wrap session target
1 parent f710b85 commit b2afa01

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

haskell-process.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
9393
nil)
9494
(apply haskell-process-wrapper-function
9595
(list
96-
(cons haskell-process-path-cabal (cons "repl" haskell-process-args-cabal-repl))))
97-
(let ((target (haskell-session-target session)))
98-
(if target (list target) nil))))
96+
(append
97+
(list haskell-process-path-cabal "repl")
98+
haskell-process-args-cabal-repl
99+
(let ((target (haskell-session-target session)))
100+
(if target (list target) nil)))))))
99101
('cabal-ghci
100102
(append (list (format "Starting inferior cabal-ghci process using %s ..."
101103
haskell-process-path-cabal-ghci)

tests/haskell-process-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
(haskell-process-compute-process-log-and-command "dummy-session2" 'cabal-repl))))))
5252

5353
(ert-deftest test-haskell-process--with-wrapper-compute-process-log-and-command-cabal-repl ()
54-
(should (equal '("Starting inferior `cabal repl' process using cabal ..." "dumses2" nil "nix-shell" "default.nix" "--command" "cabal\\ repl\\ --ghc-option\\=-ferror-spans" "dumdum-session")
54+
(should (equal '("Starting inferior `cabal repl' process using cabal ..." "dumses2" nil "nix-shell" "default.nix" "--command" "cabal\\ repl\\ --ghc-option\\=-ferror-spans\\ dumdum-session")
5555
(let ((haskell-process-path-cabal "cabal")
5656
(haskell-process-args-cabal-repl '("--ghc-option=-ferror-spans")))
5757
(custom-set-variables '(haskell-process-wrapper-function

0 commit comments

Comments
 (0)