Idris-dev/jsrts/Runtime-browser.js
Niklas Larsson 558ddd9773 Add a getLine primitive to browser js
Making console apps to run in the browser is likely a minority taste.
But prompt works for input as it's synchronous.
2015-09-24 17:06:51 +02:00

18 lines
279 B
JavaScript

var i$getLine = function() {
return prompt("Prelude.getLine");
}
var i$putStr = function(s) {
console.log(s);
};
var i$systemInfo = function(index) {
switch(index) {
case 0:
return "javascript";
case 1:
return navigator.platform;
}
return "";
}