prettyprinter v1.7.0 Release Notes
Release Date: 2020-07-31 // over 3 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