mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-22 06:29:37 +03:00
558ddd9773
Making console apps to run in the browser is likely a minority taste. But prompt works for input as it's synchronous.
18 lines
279 B
JavaScript
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 "";
|
|
}
|