tco working, update playground to self-hosted newt

This commit is contained in:
2025-03-17 18:43:42 -07:00
parent 1219e8d4e5
commit 9d7e6097f3
12 changed files with 377 additions and 395 deletions

View File

@@ -52,7 +52,8 @@ writeSource fn = do
docs <- compile
let src = unlines $
( "\"use strict\";"
:: "const PiType = (h0, h1) => ({ tag: \"PiType\", h0, h1 })"
:: "const PiType = (h0, h1) => ({ tag: \"PiType\", h0, h1 });"
:: "const bouncer = (f,ini) => { let obj = ini; while (obj.tag !== 'return') obj = f(obj); return obj.h0 };"
:: Nil)
++ map (render 90 noAlt) docs
(Right _) <- liftIO {M} $ writeFile fn src
@@ -229,7 +230,7 @@ cmdLine (fn :: args) = do
main' : M Unit
main' = do
let (arg0 :: args) = getArgs
(arg0 :: args) <- liftIO {M} $ getArgs
| _ => error emptyFC "error reading args"
(out, files) <- cmdLine args
traverse processFile files