PureScriptで標準入力
どちらかの方法
purescript-node-radlineを使う
FFIする
https://www.npmjs.com/package/readline-sync かなにかを
参考
PureScriptで標準入力 - Qiita
すごく参考になった