Skip to content

Commit 371fba9

Browse files
committed
reverting a past commit introduced a bug
commit 7e5edf4 was my confusion this commit simply reverts it
1 parent 78debad commit 371fba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infer.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ ti kctx ictx ctx env e@(In n t)
341341
let m = fromInteger n
342342
foldr mplus (throwError(strMsg $ show e ++ " has incorrect number")) $ do
343343
-- list monad (trying all combinations of Right and Left)
344-
mis <- sequence $ replicate m [ Right . Var <$> freshTyName' "a"
345-
, Left . Var <$> fresh "i" ]
344+
mis <- sequence $ replicate m [ Right . Var <$> fresh "k"
345+
, Left . Var <$> freshTyName' "i" ]
346346
return $ do -- fresh monad
347347
is <- sequence mis
348348
ty1 <- Var <$> freshTyName' "t"

0 commit comments

Comments
 (0)