1.7.0
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.