Skip to content

Releases: quchen/prettyprinter

1.3.0

21 May 07:56
Compare
Choose a tag to compare
  • Add alignment to Pretty [a] instance
  • Fix removal of blank lines in removeTrailingWhitespace
  • Widened support for GHC versions 7.4–8.8

1.2.1 – trim trailing space, add some Doc instances

15 Jun 07:24
Compare
Choose a tag to compare
  • Add function to trim trailing space in layouted SimpleDocStream, removeTrailingWhitespace
  • Add Pretty instances for Identity and Const

v1.2.0.1 – fix alterAnnotationsS

19 Feb 09:09
Compare
Choose a tag to compare

Fix alterAnnotationsS (and thus unAnnotateS), which removed pushing, but not popping, style frames. This led to them throwing errors in pretty much all use cases.

v1.2

18 Feb 17:12
Compare
Choose a tag to compare
  • encloseSep does no longer include an align wrapper; in other words,

    encloseSep_old  = align (encloseSep_new )
  • Change the default ribbon fraction to 1 (was 0.4)

  • Expose viaShow and unsafeViaShow from the public module

  • Fix layoutSmart behaving as if there was no space left for unbounded pages

v1.1.1 – add more panic functions

08 Aug 07:48
Compare
Choose a tag to compare

…required by the latest prettyprinter-ansi-terminal release

ANSI terminal backend 1.1.1.1

05 Aug 11:41
Compare
Choose a tag to compare

Instead of rendering via an intermediate Text value, stream the SimpleDocStream to STDOUT directly.

v1.1.0.1

04 Aug 12:00
Compare
Choose a tag to compare
  • Rendering directly to a handle is now more efficient in the Text renderer,
    since no intermediate Text is generated anymore.
  • Remove upper version bounds from .cabal files

1.1

08 Jun 07:13
Compare
Choose a tag to compare
1.1
  • Allow alterAnnotations to convert one annotation to multiple ones, to support e.g. Keyword ---> Green+Bold
  • Remove Pretty instance for Doc: the implicit un-annotation done by it did more harm than good.

1.0.1

04 Jun 17:02
Compare
Choose a tag to compare
  • Add alterAnnotations, which allows changing or removing annotations. reAnnotate and unAnnotate are now special cases of this.
  • Fix »group« potentially taking exponential time, by making the (internal) flatten function detect whether it is going to have any effect inside group.
  • Add proper version bounds for all dependencies and backport them to version 1
  • Haddock: example for Pretty Void

Fix bad version number of wl-pprint compatibility module

01 Jun 06:41
Compare
Choose a tag to compare

The prerelease used the same version number as the release, making resolvers resort to the prerelease (which has SimpleDoc instead of SimpleDocStream), hence the build failed.