summaryrefslogtreecommitdiff
path: root/lib/basis.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 10:34:07 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 10:34:07 -0400
commit29a7ea8ff27061917f6e5352f9d1eb8ccad7c680 (patch)
tree3d036341a8a7ed2f181f8f773b7df9e97ae2eda8 /lib/basis.urs
parentcbebf68dfc1e18c0477d20ea3b424ea2c97c8728 (diff)
num working for int
Diffstat (limited to 'lib/basis.urs')
-rw-r--r--lib/basis.urs9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/basis.urs b/lib/basis.urs
index 177554a9..18cd4c37 100644
--- a/lib/basis.urs
+++ b/lib/basis.urs
@@ -18,6 +18,15 @@ val eq_int : eq int
val eq_string : eq string
val eq_bool : eq bool
+class num
+val neg : t ::: Type -> num t -> t -> t
+val plus : t ::: Type -> num t -> t -> t -> t
+val minus : t ::: Type -> num t -> t -> t -> t
+val times : t ::: Type -> num t -> t -> t -> t
+val div : t ::: Type -> num t -> t -> t -> t
+val mod : t ::: Type -> num t -> t -> t -> t
+val num_int : num int
+
(** String operations *)