fix lambda inference

This commit is contained in:
crumbtoo
2024-03-17 06:25:29 -06:00
parent 64482660e1
commit 0e240c5256

View File

@@ -85,7 +85,8 @@ gather' = \case
(te,je) <- gather e (te,je) <- gather e
let cs = concatMap (uncurry . equals $ je ^. assumptions) $ bs `zip` tbs let cs = concatMap (uncurry . equals $ je ^. assumptions) $ bs `zip` tbs
as = foldr H.delete (je ^. assumptions) bs as = foldr H.delete (je ^. assumptions) bs
j = mempty & constraints .~ cs & assumptions .~ as j = mempty & constraints .~ (je ^. constraints <> cs)
& assumptions .~ as
t = foldr (:->) te tbs t = foldr (:->) te tbs
pure (t,j) pure (t,j)
where where