Include "fn" in function pretty print
This commit is contained in:
parent
fd16a12e7c
commit
c1fd18d525
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user