add namespaces to names
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module JSLib
|
||||
|
||||
ptype Int
|
||||
ptype String
|
||||
|
||||
|
||||
|
||||
infixl 4 _+_
|
||||
infixl 5 _*_
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user