quchen / prettyprinter

A modern, extensible and well-documented prettyprinter.
BSD 2-Clause "Simplified" License
293 stars 34 forks source link

Renderers based on `text-builder-linear` #226

Open sjakobi opened 2 years ago

sjakobi commented 2 years ago

…should be faster than the existing renderers.

See https://hackage.haskell.org/package/text-builder-linear.

oberblastmeister commented 2 years ago

@sjakobi I would like to implement this. Should I create a new package, such as prettyprinter-linear, or should I directly add this to prettyprinter. Are we trying to keep dependencies low? text-builder-linear depends on bytestring, quote-quot, and template-haskell.

sjakobi commented 1 year ago

Thanks for the offer, @oberblastmeister! :)

Indeed prettyprinter can't easily accept dependencies on non-boot libraries. So my suggestion would be to put the new renderers in a new package prettyprinter-text-builder-linear.