Skip to content

Commit feacadf

Browse files
author
Răzvan C. Rădulescu
authored
Remove length parameter to setPrompt (#21)
1 parent 58ebbe7 commit feacadf

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: purescript-contrib/setup-purescript@main
1616
with:
17-
purescript: "0.14.0-rc3"
17+
purescript: "0.14.0-rc5"
1818

1919
- uses: actions/setup-node@v1
2020
with:

src/Node/ReadLine.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ exports.question = function (text) {
4545
};
4646

4747
exports.setPrompt = function (prompt) {
48-
return function (length) {
49-
return function (readline) {
50-
return function () {
51-
readline.setPrompt(prompt, length);
52-
};
48+
return function (readline) {
49+
return function () {
50+
readline.setPrompt(prompt);
5351
};
5452
};
5553
};

src/Node/ReadLine.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ foreign import question
9898
-- | Set the prompt.
9999
foreign import setPrompt
100100
:: String
101-
-> Int
102101
-> Interface
103102
-> Effect Unit
104103

test/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Node.ReadLine (prompt, close, setLineHandler, setPrompt, noCompletion, c
1010
main :: Effect Unit
1111
main = do
1212
interface <- createConsoleInterface noCompletion
13-
setPrompt "> " 2 interface
13+
setPrompt "> " interface
1414
prompt interface
1515
setLineHandler interface $ \s ->
1616
if s == "quit"

0 commit comments

Comments
 (0)