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
|
||||
uNext
|
||||
cur . gol %= (replicate (arity a) (U VoidRef) ++)
|
||||
cur . unis += arity a
|
||||
continue
|
||||
unify VoidRef (Struct a) = do
|
||||
uNext
|
||||
cur . hed %= (replicate (arity a) (U VoidRef) ++)
|
||||
cur . unis += arity a
|
||||
continue
|
||||
unify (Struct a) (Struct b)
|
||||
| a == b = do
|
||||
|
|
Loading…
Reference in a new issue