fixes for Linux nvim support
This commit is contained in:
@@ -388,10 +388,12 @@ class HasIO (m : U → U) where
|
|||||||
instance HasIO IO where
|
instance HasIO IO where
|
||||||
liftIO a = a
|
liftIO a = a
|
||||||
|
|
||||||
|
-- NB console.log is _not_ always synchronous
|
||||||
|
-- https://nodejs.org/api/process.html#a-note-on-process-io
|
||||||
|
-- But writeSync(1, ...) adds noise to LSP on linux
|
||||||
pfunc primPutStrLn uses (MkIORes MkUnit) : String → IO Unit := `(s) => (w) => {
|
pfunc primPutStrLn uses (MkIORes MkUnit) : String → IO Unit := `(s) => (w) => {
|
||||||
// https://nodejs.org/api/process.html#a-note-on-process-io
|
//fs.writeSync(1, s + '\n')
|
||||||
// Previously console.log, but that is _not_ always synchronous
|
console.log(s)
|
||||||
fs.writeSync(1, s + '\n')
|
|
||||||
return Prelude_MkIORes(Prelude_MkUnit,w)
|
return Prelude_MkIORes(Prelude_MkUnit,w)
|
||||||
}`
|
}`
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ setlocal commentstring=--\ %s
|
|||||||
setlocal expandtab
|
setlocal expandtab
|
||||||
setlocal tabstop=2
|
setlocal tabstop=2
|
||||||
|
|
||||||
setlocal makeprg=build/exec/newt\ %
|
setlocal makeprg=newt\ %
|
||||||
|
|||||||
Reference in New Issue
Block a user