mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +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 (Resumable (BaseError TypeError)) sig
|
||||||
, Member (State TypeMap) sig
|
, Member (State TypeMap) sig
|
||||||
, Carrier sig m
|
, Carrier sig m
|
||||||
|
, Monad m
|
||||||
)
|
)
|
||||||
=> TName
|
=> TName
|
||||||
-> Type
|
-> Type
|
||||||
-> Evaluator term address Type m Type
|
-> m Type
|
||||||
substitute id ty = do
|
substitute id ty = do
|
||||||
infiniteType <- occur id ty
|
infiniteType <- occur id ty
|
||||||
ty <- if infiniteType
|
ty <- if infiniteType
|
||||||
|
Loading…
Reference in New Issue
Block a user