Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a55ffb5

Browse filesBrowse files
committed
Point to purs binary and add repl arg rather than use psci
1 parent 875ea32 commit a55ffb5
Copy full SHA for a55ffb5

File tree

1 file changed

+6
-4
lines changed
Filter options

1 file changed

+6
-4
lines changed

‎psci.el

Copy file name to clipboardExpand all lines: psci.el
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959
(defvar psci/buffer-name "psci"
6060
"Buffer name of the psci buffer.")
6161

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)
6466

6567
(defcustom psci/arguments '("src/**/*.purs" "bower_components/purescript-*/src/**/*.purs")
6668
"Commandline arguments to pass to `psci' function."
@@ -120,7 +122,7 @@ When FILENAME is nil or not a real file, returns nil."
120122
Relies on .psci file for determining the project's root folder."
121123
(interactive)
122124
(-if-let (project-root-folder (psci/--project-root!))
123-
(let* ((psci-program psci/file-path)
125+
(let* ((psci-program psci/purs-path)
124126
(buffer (comint-check-proc psci/buffer-name)))
125127
;; pop to the "*psci*" buffer if the process is dead, the
126128
;; 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."
136138
(append psci/arguments psc-package-sources)
137139
psci/arguments)))
138140
(apply 'make-comint-in-buffer psci/buffer-name buffer
139-
psci-program nil full-arg-list))
141+
psci-program nil "repl" full-arg-list))
140142
(psci-mode)))
141143
(psci/log "No .psci file so we cannot determine the root project folder. Please, add one.")))
142144

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.