unification flags behave like flags
This commit is contained in:
parent
0092723895
commit
1521c628a0
|
@ -242,10 +242,12 @@ unify (Number a) (Number b)
|
||||||
unify (Struct a) VoidRef = do
|
unify (Struct a) VoidRef = do
|
||||||
uNext
|
uNext
|
||||||
cur . gol %= (replicate (arity a) (U VoidRef) ++)
|
cur . gol %= (replicate (arity a) (U VoidRef) ++)
|
||||||
|
cur . unis += arity a
|
||||||
continue
|
continue
|
||||||
unify VoidRef (Struct a) = do
|
unify VoidRef (Struct a) = do
|
||||||
uNext
|
uNext
|
||||||
cur . hed %= (replicate (arity a) (U VoidRef) ++)
|
cur . hed %= (replicate (arity a) (U VoidRef) ++)
|
||||||
|
cur . unis += arity a
|
||||||
continue
|
continue
|
||||||
unify (Struct a) (Struct b)
|
unify (Struct a) (Struct b)
|
||||||
| a == b = do
|
| a == b = do
|
||||||
|
|
Loading…
Reference in a new issue