File tree 1 file changed +6
-4
lines changed
Filter options
1 file changed +6
-4
lines changed
Original file line number Diff line number Diff line change 59
59
(defvar psci/buffer-name " psci"
60
60
" Buffer name of the psci buffer." )
61
61
62
- (defvar psci/file-path " psci"
63
- " Path to the program used by `psci' function." )
62
+ (defcustom psci/purs-path " purs"
63
+ " Path to the `purs' binary"
64
+ :group 'psci
65
+ :type 'string )
64
66
65
67
(defcustom psci/arguments '(" src/**/*.purs" " bower_components/purescript-*/src/**/*.purs" )
66
68
" Commandline arguments to pass to `psci' function."
@@ -120,7 +122,7 @@ When FILENAME is nil or not a real file, returns nil."
120
122
Relies on .psci file for determining the project's root folder."
121
123
(interactive )
122
124
(-if-let (project-root-folder (psci/--project-root!))
123
- (let* ((psci-program psci/file -path)
125
+ (let* ((psci-program psci/purs -path)
124
126
(buffer (comint-check-proc psci/buffer-name)))
125
127
; ; pop to the "*psci*" buffer if the process is dead, the
126
128
; ; buffer is missing or it's got the wrong mode.
@@ -136,7 +138,7 @@ Relies on .psci file for determining the project's root folder."
136
138
(append psci/arguments psc-package-sources)
137
139
psci/arguments)))
138
140
(apply 'make-comint-in-buffer psci/buffer-name buffer
139
- psci-program nil full-arg-list))
141
+ psci-program nil " repl " full-arg-list))
140
142
(psci-mode)))
141
143
(psci/log " No .psci file so we cannot determine the root project folder. Please, add one." )))
142
144
You can’t perform that action at this time.
0 commit comments