1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00

Generalize unify.

This commit is contained in:
Rob Rix 2018-10-22 12:27:13 -04:00
parent 3c267f2757
commit 9fbbd9a667

View File

@ -211,10 +211,11 @@ unify :: ( Member (Reader ModuleInfo) sig
, Member (Resumable (BaseError TypeError)) sig
, Member (State TypeMap) sig
, Carrier sig m
, Monad m
)
=> Type
-> Type
-> Evaluator term address Type m Type
-> m Type
unify a b = do
a' <- prune a
b' <- prune b