News for hackers. Stuff that matters.
Re:The Hardest Program I've Ever Written – How a code format... by sjakobi on Friday March 27, 2020 @11:21PM (#22708926)
> Hughes' pretty printer works really well for pretty-printing Haskell code, but Wadler's is more flexible for pretty-printing C-style languages where there is a dedented closing brace at the end of scopes.

That's very interesting! So far I've only used Wadler-Leijen-style prettyprinters.

Are Hughes-style pretty printers "better" in some way for Haskell-like documents? If so, why?

There are no comments on this comment yet.