Map Bool-shaped things to javascript bool, add if/then and tertiary to code gen

This commit is contained in:
2025-10-20 11:08:12 -07:00
parent e45d194d7f
commit 15b892510e
9 changed files with 68 additions and 15 deletions

View File

@@ -10,7 +10,8 @@ const : ∀ a b. a → b → a
const a b = a
data Unit = MkUnit
data Bool = True | False
-- False first so it ends up being false
data Bool = False | True
not : Bool Bool
not True = False