@@ -44,7 +44,7 @@ Used for locating additional package data files.")
44
44
(defcustom haskell-process-type
45
45
'auto
46
46
" The inferior Haskell process type to use."
47
- :type '(choice (const auto) (const ghci) (const cabal-repl) (const cabal-ghci))
47
+ :type '(choice (const auto) (const ghci) (const cabal-repl) (const cabal-ghci) (const stack-ghci) )
48
48
:group 'haskell-interactive )
49
49
50
50
(defcustom haskell-process-wrapper-function
@@ -110,6 +110,12 @@ when showing type information about symbols."
110
110
:group 'haskell-interactive
111
111
:type '(choice string (repeat string)))
112
112
113
+ (defcustom haskell-process-path-stack
114
+ " stack"
115
+ " The path for starting stack."
116
+ :group 'haskell-interactive
117
+ :type '(choice string (repeat string)))
118
+
113
119
(defcustom haskell-process-args-ghci
114
120
'(" -ferror-spans" )
115
121
" Any arguments for starting ghci."
@@ -118,7 +124,7 @@ when showing type information about symbols."
118
124
119
125
(defcustom haskell-process-args-cabal-repl
120
126
'(" --ghc-option=-ferror-spans" )
121
- " Additional arguments to for `cabal repl' invocation.
127
+ " Additional arguments for `cabal repl' invocation.
122
128
Note: The settings in `haskell-process-path-ghci' and
123
129
`haskell-process-args-ghci' are not automatically reused as `cabal repl'
124
130
currently invokes `ghc --interactive'. Use
@@ -128,6 +134,12 @@ pass additional flags to `ghc'."
128
134
:group 'haskell-interactive
129
135
:type '(repeat (string :tag " Argument" )))
130
136
137
+ (defcustom haskell-process-args-stack-ghci
138
+ '(" --ghc-options=-ferror-spans" )
139
+ " Additional arguments for `stack ghci' invocation."
140
+ :group 'haskell-interactive
141
+ :type '(repeat (string :tag " Argument" )))
142
+
131
143
(defcustom haskell-process-do-cabal-format-string
132
144
" :!cd %s && %s"
133
145
" The way to run cabal comands. It takes two arguments -- the directory and the command.
0 commit comments