prettyprinter icon indicating copy to clipboard operation
prettyprinter copied to clipboard

A modern, extensible and well-documented prettyprinter.

Results 56 prettyprinter issues
Sort by recently updated
recently updated
newest added

As discussed in #102, there is currently no way to use the `Pretty` typeclass in combination with annotations. In that issue, several alternatives were discussed, which were either backwards incompatible...

Re-export some Data.Text modules for the purpose of downstream libraries being able to write code compatible with the fake text module Related issue: https://github.com/quchen/prettyprinter/issues/207

With https://github.com/quchen/prettyprinter/pull/139 merged, `rTW` is no longer necessary for the scenarios for which it was originally created. Should we deprecate and remove it now?

Question or comment
Documentation

This issue is based on GaloisInc/cryptol#1274. The story is that we recently ported our `cryptol` language interpreter to use `prettyprinter`, but later we noticed a severe slowdown that occurs when...

Bug
Performance

Hello, I have a very large document that, when printed, takes about 30 seconds if I define `commas = fillSep . punctuate commas`, but only takes 3 seconds if I...

Performance

Would it be possible to add an example in the documentation of how to write a function pPrintList for nested lists? i.e. pPrintList [[1..5],[6..10]] would output something like [ [1,2,3,4,5]...

Documentation

I'm trying to write a patch to `optparse-applicative` to use `prettyprinter` instead. One of the [requirements](https://github.com/pcapriotti/optparse-applicative/pull/428#discussion_r709511025) is to not create a dependency on the `text` package. The `SText` constructor uses...

Feature request

This is a common pattern in `dhall`: ```haskell do supportsANSI

Feature request

Currently `Data.Text.length` is used to identify length of the text in characters. But this is not true for Unicode wide characters and emojis that can occupy 2 cells on the...

Feature request

The renderIO [documentation](http://hackage.haskell.org/package/prettyprinter-1.7.0/docs/Prettyprinter-Render-Text.html#v:renderIO) says that it is more efficient, but it seems to be slower when writing to files on Linux. I recently switched things around in one of my...

Performance
Documentation