Include "fn" in function pretty print

This commit is contained in:
Ethan Girouard 2024-12-11 17:19:32 -05:00
parent fd16a12e7c
commit c1fd18d525
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -199,7 +199,7 @@ instance Pretty TLEnum where
instance Pretty TLFunc where
pretty (Func n args ret body) =
pretty n <> parens (hsep (punctuate comma (map pretty args))) <+> "->" <+> pretty ret <+> prettyBlock body
"fn " <> pretty n <> parens (hsep (punctuate comma (map pretty args))) <+> "->" <+> pretty ret <+> prettyBlock body
instance Pretty TL where
pretty (TLStruct s) = pretty s