mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Generalize substitute.
This commit is contained in:
parent
0960f0cd9e
commit
3c267f2757
@ -192,10 +192,11 @@ substitute :: ( Member (Reader ModuleInfo) sig
|
||||
, Member (Resumable (BaseError TypeError)) sig
|
||||
, Member (State TypeMap) sig
|
||||
, Carrier sig m
|
||||
, Monad m
|
||||
)
|
||||
=> TName
|
||||
-> Type
|
||||
-> Evaluator term address Type m Type
|
||||
-> m Type
|
||||
substitute id ty = do
|
||||
infiniteType <- occur id ty
|
||||
ty <- if infiniteType
|
||||
|
Loading…
Reference in New Issue
Block a user