prettyprinter-compat-ansi-wl-pprint 1.0.2 → 1.1
raw patch · 4 files changed
+16/−6 lines, 4 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
+ Text.PrettyPrint.ANSI.Leijen: ($dmpretty) :: (Pretty a, Show a) => a -> Doc ann
Files
- CHANGELOG.md +5/−0
- README.md +5/−1
- prettyprinter-compat-ansi-wl-pprint.cabal +5/−4
- src/Text/PrettyPrint/ANSI/Leijen.hs +1/−1
+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# [1.1]++- [Change `renderPretty` to use `layoutPretty` instead of `layoutSmart`.](https://github.com/quchen/prettyprinter/pull/244)++[1.1]: https://github.com/quchen/prettyprinter/compare/compat-ansi-wl-pprint-1.0.2...compat-ansi-wl-pprint-1.1
README.md view
@@ -5,7 +5,8 @@ package, and the new `prettyprinter`/`prettyprinter-ansi-terminal` ones. This allows easily transitioning dependent packages from the old to the new-package, by simply replacing `ansi-wl-pprint` with `prettyprinter-ansi-terminal`+package, by simply replacing `ansi-wl-pprint` with+`prettyprinter-compat-ansi-wl-pprint` in the `.cabal` file. For adapting third party plugins that output `ansi-wl-pprint` data, use the proper converter from the `prettyprinter-convert-ansi-wl-pprint` module.@@ -14,3 +15,6 @@ deprecated and wholly undocumented. For new development, use the current version of `prettyprinter`, and the ANSI terminal backend provided in `prettyprinter-ansi-terminal`.++Also note that there are API differences that may require code changes:+See https://github.com/quchen/prettyprinter/issues/246.
prettyprinter-compat-ansi-wl-pprint.cabal view
@@ -1,5 +1,5 @@ name: prettyprinter-compat-ansi-wl-pprint-version: 1.0.2+version: 1.1 cabal-version: >= 1.10 category: User Interfaces, Text synopsis: Drop-in compatibility package to migrate from »ansi-wl-pprint« to »prettyprinter«.@@ -7,16 +7,17 @@ license: BSD2 license-file: LICENSE.md extra-source-files: README.md+ , CHANGELOG.md author: David Luposchainsky maintainer: David Luposchainsky <dluposchainsky at google> bug-reports: http://github.com/quchen/prettyprinter/issues homepage: http://github.com/quchen/prettyprinter build-type: Simple-tested-with: GHC==9.0.1, GHC==8.10.4, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2+tested-with: GHC==9.12.2, GHC==9.10.3, GHC==9.8.4, GHC==9.6.7, GHC==9.4.8, GHC==9.2.8, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2 source-repository head type: git- location: git://github.com/quchen/prettyprinter.git+ location: https://github.com/quchen/prettyprinter library exposed-modules: Text.PrettyPrint.ANSI.Leijen@@ -28,7 +29,7 @@ , OverloadedStrings build-depends:- base >= 4.5 && < 5 && < 5+ base >= 4.5 && < 5 , text >= 1.2 , prettyprinter >= 1.7.0 , prettyprinter-ansi-terminal >= 1.1
src/Text/PrettyPrint/ANSI/Leijen.hs view
@@ -230,7 +230,7 @@ renderPretty :: Float -> Int -> Doc -> SimpleDoc renderPretty ribbonFraction pageWidth- = New.layoutSmart New.LayoutOptions+ = New.layoutPretty New.LayoutOptions { New.layoutPageWidth = New.AvailablePerLine pageWidth (realToFrac ribbonFraction) }