port compiles hello world

This commit is contained in:
2025-01-04 21:07:25 -08:00
parent 6b1eef86a7
commit 0dbc5d5ee7
7 changed files with 26 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ pfunc readFile uses (fs MkIORes Left Right) : (fn : String) -> IO (Either String
}`
-- I wonder if I should automatically `uses` the constructors in the types
pfunc writeFile uses (fs MkIORes MkUnit) : String String IO (Either String Unit) := `(fn, content) => {
pfunc writeFile uses (fs MkIORes MkUnit) : String String IO (Either String Unit) := `(fn, content) => (w) => {
let result
try {
fs.writeFileSync(fn, content, 'utf8')