add namespaces to names

This commit is contained in:
2024-12-26 18:51:46 -08:00
parent 9d90dd828e
commit 9655434b2a
27 changed files with 199 additions and 175 deletions

View File

@@ -101,9 +101,7 @@ foo a b = ?
-- We can define native types, if the type is left off, it defaults to U
ptype Int : U
ptype String : U
ptype Char : U
ptype SomePrimType : U
-- The names of these three types are special, primitive numbers, strings,
-- and characters inhabit them, respectively. We can match on primitives, but

View File

@@ -51,7 +51,7 @@ infixr 1 _,_
data Pair : U -> U -> U where
_,_ : A B. A -> B -> Pair A B
ptype Int
test : Maybe Int
test = pure 10