Make pretty ArrayType match parse

This commit is contained in:
2025-08-31 20:38:09 -04:00
parent b95b095dc8
commit bd4a6f5092

View File

@@ -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"