repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f0113d
)
add last exception for functype
author
Mart Lubbers
<mart@martlubbers.net>
Fri, 20 May 2016 14:39:18 +0000
(16:39 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Fri, 20 May 2016 14:39:18 +0000
(16:39 +0200)
sem.icl
patch
|
blob
|
history
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