Releases: quchen/prettyprinter
Releases · quchen/prettyprinter
1.7.1
- Deprecate the
Data.Text.Prettyprint.*
modules- Users should migrate to the new
Prettyprinter
module hierarchy. - The old modules will be removed no sooner than September 2022.
- Users should migrate to the new
- Make
text
an optional dependency:- When built with
-f-text
, anytext
-based APIs will operate onString
s instead.
- When built with
- Documentation improvements:
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.
prettyprinter-convert-ansi-wl-pprint 1.1.1
- 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
prettyprinter-ansi-terminal 1.1.2
1.1.2
- 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
- Make
renderLazy
lazy, and speed it up. - Add export list for Prettyprinter.Render.Terminal.Internal.
- Optimize generating spaces for indentation.
- Enable
-O2
. - Extend GHC support to 7.6 and 7.4.
1.6.2
1.6.1
- Use an export list in
Data.Text.Prettyprint.Doc.Internal
. - Improve
group
forUnion
andFlatAlt
. - Speed up
removeTrailingWhitespace
. - Improve generating spaces for indentation and
spaces
. - Simplify some
Doc
constants by defining them asDoc
literals. - Enable
-O2
. - Various documentation fixes and improvements.
1.6.0
Breaking changes
- Fix
fuse
's handling of annotated documents:- Don't remove annotations on empty documents.
- Apply fusion within annotations.
- Fix layouting of hard linebreaks with
Unbounded
page widths.
Non-breaking changes
- Speed up
group
for documents containing linebreaks and previously
group
ed documents. - Add debugging helpers in
Data.Text.Prettyprint.Doc.Internal.Debug
- Documentation improvements and fixes