Skip to content

Commit d131862

Browse files
committed
fix: foldr not foldl
1 parent ee0ce8b commit d131862

File tree

1 file changed

+1
-1
lines changed
  • lambda-buffers-compiler/src/LambdaBuffers/Compiler

1 file changed

+1
-1
lines changed

lambda-buffers-compiler/src/LambdaBuffers/Compiler/KindCheck.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ tyAbsLHS2Kind :: PC.TyAbs -> Kind
268268
tyAbsLHS2Kind tyAbs = foldWithArrow $ pKind2Kind . (\x -> x ^. #argKind) <$> toList (tyAbs ^. #tyArgs)
269269

270270
foldWithArrow :: [Kind] -> Kind
271-
foldWithArrow = foldl (:->:) Type
271+
foldWithArrow = foldr (:->:) Type
272272

273273
-- ================================================================================
274274
-- To Kind Conversion functions

0 commit comments

Comments
 (0)