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

@@ -1,7 +1,7 @@
module JSLib
ptype Int
ptype String
infixl 4 _+_
infixl 5 _*_

View File

@@ -235,10 +235,6 @@ infixr 7 _++_
class Concat a where
_++_ : a a a
ptype String
ptype Int
ptype Char
pfunc sconcat : String String String := `(x,y) => x + y`
instance Concat String where
_++_ = sconcat

View File

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

View File

@@ -5,7 +5,7 @@ module Tutorial
-- import Prelude not implemented yet
-- declare a primitive type
ptype Int
-- declare a more complex primitive type
ptype Array : U -> U