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

@@ -106,7 +106,7 @@ processModule importFC base stk qn@(QN ns nm) = do
let (Right (imports, ops, toks)) = partialParse fn parseImports ops toks
| Left (err, toks) => exitFailure (showError src err)
for_ imports $ \case
for imports $ \case
MkImport fc name' => do
let (a,b) = unsnoc $ split1 name' "."
let qname = QN a b
@@ -214,7 +214,7 @@ main' = do
let (arg0 :: args) = getArgs
| _ => error emptyFC "error reading args"
(out, files) <- cmdLine args
traverse_ processFile files
traverse processFile files
when (elem "--top" args) $ \ _ => do
json <- jsonTopContext