prettyprinter v1.7.0 Release Notes
Release Date: 2020-07-31 // about 4 years ago-
๐ฅ Breaking changes
- ๐จ Fix
layoutPretty
andlayoutSmart
so they don't produce trailing whitespace as a result of indenting empty lines.- Users of
removeTrailingWhitespace
should check whether it is still needed.
- Users of
- ๐จ Use
floor
instead ofround
to compute ribbon width. - ๐ Remove deprecated
Data.Text.Prettyprint.Doc.Render.ShowS
module. - โก๏ธ Add optimized implementation of
stimes
forDoc
. - ๐จ Generalize the type of
layoutCompact
to clarify that it doesn't preserve annotations. - ๐จ Add strictness annotations in
SimpleDocStream
andPageWidth
.
Non-breaking changes
- ๐จ Add shallower
Prettyprinter
module hierarchy exposing the same API.- The current plan for the existing
Data.Text.Prettyprint.Doc*
modules is: - Start deprecation in early 2021.
- Remove the modules after a deprecation period of at least one year.
- The current plan for the existing
- ๐ Fix build with GHC 7.4.
- ๐ Various documentation improvements.
- ๐จ Fix
Previous changes from v1.6.2
-
- Speed up rendering to lazy and strict
Text
. - ๐ Documentation improvements for
group
andflatAlt
. - ๐จ Internal refactoring of the
layoutWadlerLeijen
-based layouters.
- Speed up rendering to lazy and strict