repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add last exception for functype
[cc1516.git]
/
sem.icl
diff --git
a/sem.icl
b/sem.icl
index
668bbeb
..
e714dbf
100644
(file)
--- a/
sem.icl
+++ b/
sem.icl
@@
-143,6
+143,7
@@
unify (TupleType (ta1,ta2)) (TupleType (tb1,tb2)) = unify ta1 tb1 >>= \s1->
unify ta2 tb2 >>= \s2->
Right $ compose s1 s2
unify (ListType t1) (ListType t2) = unify t1 t2
+unify (FuncType t1) (FuncType t2) = unify t1 t2
unify t1 t2 | t1 == t2 = Right zero
| otherwise = Left $ UnifyError zero t1 t2