mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Produce TArr properly
This commit is contained in:
parent
8aadfa44a6
commit
16bdc21e4f
@ -55,7 +55,6 @@ instance ( Alternative m
|
||||
, MonadFresh m
|
||||
, MonadEnv Monovariant Type m
|
||||
, MonadStore Monovariant Type m
|
||||
-- , MonadAddress Monovariant m
|
||||
, FreeVariables t
|
||||
)
|
||||
=> Eval t Type m Function where
|
||||
@ -69,7 +68,7 @@ instance ( Alternative m
|
||||
pure (name, a, tvar)
|
||||
|
||||
outTy <- localEnv (const (foldr (\ (n, a, _) -> envInsert n a) env tvars)) (recur pure functionBody)
|
||||
let tvars' = fmap (\(_, _, t) -> t) tvars
|
||||
let tvars' = fmap (\(_, _, t) -> TVar t) tvars
|
||||
let v = TArr tvars' :-> outTy
|
||||
|
||||
let [name] = toList (freeVariables functionName)
|
||||
|
Loading…
Reference in New Issue
Block a user