Newt - a dependent typed programming language

fixes for Linux nvim support

+6 -4
+5 -3
src/Prelude.newt
··· 388 388 instance HasIO IO where 389 389 liftIO a = a 390 390 391 + -- NB console.log is _not_ always synchronous 392 + -- https://nodejs.org/api/process.html#a-note-on-process-io 393 + -- But writeSync(1, ...) adds noise to LSP on linux 391 394 pfunc primPutStrLn uses (MkIORes MkUnit) : String → IO Unit := `(s) => (w) => { 392 - // https://nodejs.org/api/process.html#a-note-on-process-io 393 - // Previously console.log, but that is _not_ always synchronous 394 - fs.writeSync(1, s + '\n') 395 + //fs.writeSync(1, s + '\n') 396 + console.log(s) 395 397 return Prelude_MkIORes(Prelude_MkUnit,w) 396 398 }` 397 399
+1 -1
vim/ftplugin/newt.vim
··· 4 4 setlocal expandtab 5 5 setlocal tabstop=2 6 6 7 - setlocal makeprg=build/exec/newt\ % 7 + setlocal makeprg=newt\ %