From bd4a6f50920cf2cf9378b877bcd12171bc6fa752 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 31 Aug 2025 20:38:09 -0400 Subject: [PATCH] Make pretty ArrayType match parse --- src/Windows12/Ast.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Windows12/Ast.hs b/src/Windows12/Ast.hs index d41544c..39b0dc7 100644 --- a/src/Windows12/Ast.hs +++ b/src/Windows12/Ast.hs @@ -183,7 +183,7 @@ instance Pretty Type where pretty BoolType = "bool" pretty CharType = "char" pretty (PtrType t) = pretty t <> "*" - pretty (ArrayType t) = pretty t <> "[]" + pretty (ArrayType t) = "[" <> pretty t <> "]" pretty (StructType s) = pretty s pretty (EnumType e) = pretty e pretty VoidType = "void"