···388388instance HasIO IO where
389389 liftIO a = a
390390391391+-- NB console.log is _not_ always synchronous
392392+-- https://nodejs.org/api/process.html#a-note-on-process-io
393393+-- But writeSync(1, ...) adds noise to LSP on linux
391394pfunc primPutStrLn uses (MkIORes MkUnit) : String → IO Unit := `(s) => (w) => {
392392- // https://nodejs.org/api/process.html#a-note-on-process-io
393393- // Previously console.log, but that is _not_ always synchronous
394394- fs.writeSync(1, s + '\n')
395395+ //fs.writeSync(1, s + '\n')
396396+ console.log(s)
395397 return Prelude_MkIORes(Prelude_MkUnit,w)
396398}`
397399