@@ -85,7 +85,8 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
85
85
nil )
86
86
(apply haskell-process-wrapper-function
87
87
(list
88
- (cons haskell-process-path-ghci haskell-process-args-ghci)))))
88
+ (append (haskell-process-path-to-list haskell-process-path-ghci)
89
+ haskell-process-args-ghci)))))
89
90
('cabal-repl
90
91
(append (list (format " Starting inferior `cabal repl' process using %s ... "
91
92
haskell-process-path-cabal)
@@ -94,7 +95,8 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
94
95
(apply haskell-process-wrapper-function
95
96
(list
96
97
(append
97
- (list haskell-process-path-cabal " repl" )
98
+ (haskell-process-path-to-list haskell-process-path-cabal)
99
+ (list " repl" )
98
100
haskell-process-args-cabal-repl
99
101
(let ((target (haskell-session-target session)))
100
102
(if target (list target) nil )))))))
@@ -105,11 +107,18 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
105
107
(apply haskell-process-wrapper-function
106
108
(list
107
109
(append
108
- (list haskell-process-path-stack " ghci" )
110
+ (haskell-process-path-to-list haskell-process-path-stack)
111
+ (list " ghci" )
109
112
(let ((target (haskell-session-target session)))
110
113
(if target (list target) nil ))
111
114
haskell-process-args-stack-ghci))))))))
112
115
116
+ (defun haskell-process-path-to-list (path )
117
+ " Convert a path (which may be a string or a list) to a list."
118
+ (if (stringp path)
119
+ (list path)
120
+ path))
121
+
113
122
(defun haskell-process-make (name )
114
123
" Make an inferior Haskell process."
115
124
(list (cons 'name name)))
0 commit comments