compiler output compatible with older version

This commit is contained in:
2025-01-25 11:58:03 -08:00
parent 4226e38fc8
commit 7d218a4b94
2 changed files with 13 additions and 2 deletions

View File

@@ -54,7 +54,18 @@
"command": "newt-vscode.check",
"title": "Check newt file"
}
]
],
"configuration": {
"type": "object",
"title": "Newt Configuration",
"properties": {
"newt.path": {
"type": "string",
"default": "build/exec/newt",
"description": "Path to the newt executable"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",

View File

@@ -804,7 +804,7 @@ snoc : ∀ a. List a → a → List a
snoc xs x = xs ++ (x :: Nil)
instance a b. {{Show a}} {{Show b}} Show (a × b) where
show (a,b) = "(" ++ show a ++ "," ++ show b ++ ")"
show (a,b) = "(" ++ show a ++ ", " ++ show b ++ ")"
instance a. {{Show a}} Show (List a) where
show xs = joinBy ", " $ map show xs