there is a fucking ghost that keeps changing this ifoldr to an ifoldl.
This commit is contained in:
1 parent
47c2d34551
commit
a8912dea5e
1 file changed
+1
-1
@@ -136,7 +136,7 @@ infer1' g1 e = do
|
||||
((t,j) :< _) <- annotate e
|
||||
g2 <- unify (j ^. constraints)
|
||||
g <- unionContextWithKeyM unifyTypes g1 g2
|
||||
pure $ ifoldrOf (contextVars . itraversed) subst t g
|
||||
pure $ ifoldlOf (contextVars . itraversed) subst t g
|
||||
where
|
||||
-- intuitively, we'd return mgu(s,t) but the union is left-biased making `s`
|
||||
-- the user-specified type: prioritise her.
|
||||
|
||||
Reference in new issue
Block a user