shithub: MicroHs

Download patch

ref: 28c2e7dd96c57255aefd4c30a4615d432ba6f2f8
parent: 5c6de5290c87f5e78b5bf0433015660236326f26
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Wed Sep 20 10:11:38 EDT 2023

Fix bug

--- a/src/MicroHs/Expr.hs
+++ b/src/MicroHs/Expr.hs
@@ -418,7 +418,7 @@
     ECon c -> showCon c
     EForall iks e -> "forall " ++ unwords (map showIdKind iks) ++ " . " ++ showEType e
   where
-    showApp as (EApp f a) = showApp (as ++ [a]) f
+    showApp as (EApp f a) = showApp (a:as) f
     showApp as (EVar i) | eqString op "->", [a, b] <- as = "(" ++ showExpr a ++ " -> " ++ showExpr b ++ ")"
                         | eqChar (head op) ',' = showExpr (ETuple as)
                         | eqString op "[]", length as == 1 = showExpr (EListish (LList as))
--