Skip to content

Commit 2528ddd

Browse files
committed
Prepare releases for all packages
prettyprinter 1.7.2: - Add PrettyAnn type class - Add Pretty instances for 4-7 tuples - Add instance ann ~ Void => Pretty (Doc ann) - Drop support for GHC 7 - Make it compile with MicroHs - Remove the MINIMAL pragma from Pretty - Documentation improvements prettyprinter-ansi-terminal 1.1.4: - Add 'text' flag - Fix inconsistency between renderLazy/renderIO - Drop support for GHC 7 - Make it compile with MicroHs prettyprinter-compat-ansi-wl-pprint 1.1.1: - Drop support for GHC 7 - Make it compile with MicroHs prettyprinter-compat-annotated-wl-pprint 1.1.1: - Drop support for GHC 7 prettyprinter-compat-wl-pprint 1.0.2: - Drop support for GHC 7 - Make it compile with MicroHs prettyprinter-convert-ansi-wl-pprint 1.1.3: - Drop support for GHC 7 Assisted-by: GLM-5 via Fireworks AI <noreply@fireworks.ai>
1 parent d2ddf82 commit 2528ddd

10 files changed

Lines changed: 70 additions & 17 deletions

File tree

prettyprinter-ansi-terminal/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# Unreleased
1+
# [1.1.4] – April 2026
22

3-
- Drop support for GHC 7.
3+
- [Add `text` flag](https://github.com/quchen/prettyprinter/pull/279)
4+
- [Fix inconsistency between `renderLazy`/`renderIO`](https://github.com/quchen/prettyprinter/pull/261)
5+
- [Drop support for GHC 7](https://github.com/quchen/prettyprinter/pull/278)
6+
- [Make it compile with MicroHs](https://github.com/quchen/prettyprinter/pull/270)
7+
8+
[1.1.4]: https://github.com/quchen/prettyprinter/compare/ansi-terminal-v1.1.3...ansi-terminal-v1.1.4
49

510
# [1.1.3]
611

prettyprinter-ansi-terminal/prettyprinter-ansi-terminal.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter-ansi-terminal
2-
version: 1.1.3
2+
version: 1.1.4
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: ANSI terminal backend for the »prettyprinter« package.

prettyprinter-compat-annotated-wl-pprint/prettyprinter-compat-annotated-wl-pprint.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter-compat-annotated-wl-pprint
2-
version: 1.1
2+
version: 1.1.1
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: Drop-in compatibility package to migrate from »annotated-wl-pprint« to »prettyprinter«.

prettyprinter-compat-ansi-wl-pprint/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# Unreleased
1+
# [1.1.1] – April 2026
22

3-
- Drop support for GHC 7.
3+
- [Drop support for GHC 7](https://github.com/quchen/prettyprinter/pull/278)
4+
- [Make it compile with MicroHs](https://github.com/quchen/prettyprinter/pull/270)
5+
6+
[1.1.1]: https://github.com/quchen/prettyprinter/compare/compat-ansi-wl-pprint-1.1...compat-ansi-wl-pprint-1.1.1
47

58
# [1.1]
69

prettyprinter-compat-ansi-wl-pprint/prettyprinter-compat-ansi-wl-pprint.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter-compat-ansi-wl-pprint
2-
version: 1.1
2+
version: 1.1.1
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: Drop-in compatibility package to migrate from »ansi-wl-pprint« to »prettyprinter«.

prettyprinter-compat-wl-pprint/prettyprinter-compat-wl-pprint.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter-compat-wl-pprint
2-
version: 1.0.1
2+
version: 1.0.2
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: Drop-in compatibility package to migrate from »wl-pprint« to »prettyprinter«.

prettyprinter-convert-ansi-wl-pprint/prettyprinter-convert-ansi-wl-pprint.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter-convert-ansi-wl-pprint
2-
version: 1.1.2
2+
version: 1.1.3
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: Converter from »ansi-wl-pprint« documents to »prettyprinter«-based ones.

prettyprinter/CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
# Unreleased
1+
# [1.7.2] – April 2026
2+
3+
- [Add `PrettyAnn` type class](https://github.com/quchen/prettyprinter/pull/256)
4+
- [Add `Pretty` instances for 4-7 tuples](https://github.com/quchen/prettyprinter/pull/275)
5+
- [Add instance `ann ~ Void => Pretty (Doc ann)`](https://github.com/quchen/prettyprinter/pull/234)
6+
- [Drop support for GHC 7](https://github.com/quchen/prettyprinter/pull/278)
7+
- [Make it compile with MicroHs](https://github.com/quchen/prettyprinter/pull/270)
8+
- [Remove the MINIMAL pragma from `Pretty`](https://github.com/quchen/prettyprinter/pull/219)
9+
- Documentation improvements:
10+
* [#229](https://github.com/quchen/prettyprinter/pull/229)
11+
* [#255](https://github.com/quchen/prettyprinter/pull/255)
12+
* [#273](https://github.com/quchen/prettyprinter/pull/273)
213

3-
- Drop support for GHC 7.
14+
[1.7.2]: https://github.com/quchen/prettyprinter/compare/v1.7.1...v1.7.2
415

516
# [1.7.1]
617

prettyprinter/prettyprinter.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: prettyprinter
2-
version: 1.7.1
2+
version: 1.7.2
33
cabal-version: >= 1.10
44
category: User Interfaces, Text
55
synopsis: A modern, easy to use, well-documented, extensible pretty-printer.

prettyprinter/src/Prettyprinter/Internal.hs

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ class Pretty a where
294294
-- , (1, [2, 2, 2, 2, 2, 2, 2, 2])
295295
-- , (1, [2, 2, 2, 2, 2, 2, 2, 2]) ] ]
296296

297+
-- | @since 1.7.2
297298
instance ann ~ Void => Pretty (Doc ann) where
298299
pretty = vacuous
299300

@@ -351,7 +352,7 @@ instance Pretty Char where
351352
-- | This class is similar to 'Pretty', but allows you to embed annotations in
352353
-- the 'Doc'.
353354
--
354-
-- @since FIXME
355+
-- @since 1.7.2
355356
class PrettyAnn ann a where
356357

357358
prettyAnn :: a -> Doc ann
@@ -362,27 +363,35 @@ class PrettyAnn ann a where
362363
prettyAnnList :: [a] -> Doc ann
363364
prettyAnnList = align . list . map prettyAnn
364365

366+
-- | @since 1.7.2
365367
instance PrettyAnn ann (Doc ann) where
366368
prettyAnn = id
367369

370+
-- | @since 1.7.2
368371
instance PrettyAnn ann a => PrettyAnn ann (Const a b) where
369372
prettyAnn = prettyAnn . getConst
370373

371374
#if FUNCTOR_IDENTITY_IN_BASE
375+
-- | @since 1.7.2
372376
instance PrettyAnn ann a => PrettyAnn ann (Identity a) where
373377
prettyAnn = prettyAnn . runIdentity
374378
#endif
375379

380+
-- | @since 1.7.2
376381
instance PrettyAnn ann a => PrettyAnn ann [a] where
377382
prettyAnn = prettyAnnList
378383

384+
-- | @since 1.7.2
379385
instance PrettyAnn ann a => PrettyAnn ann (NonEmpty a) where
380386
prettyAnn (x:|xs) = prettyAnnList (x:xs)
381387

388+
-- | @since 1.7.2
382389
instance PrettyAnn ann () where prettyAnn = pretty
383390

391+
-- | @since 1.7.2
384392
instance PrettyAnn ann Bool where prettyAnn = pretty
385393

394+
-- | @since 1.7.2
386395
instance PrettyAnn ann Char where
387396
prettyAnn = pretty
388397
prettyAnnList = prettyList
@@ -440,28 +449,28 @@ instance (Pretty a1, Pretty a2, Pretty a3) => Pretty (a1,a2,a3) where
440449
-- | >>> pretty (123, "hello", False, ())
441450
-- (123, hello, False, ())
442451
--
443-
-- @since FIXME
452+
-- @since 1.7.2
444453
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4) => Pretty (a1,a2,a3,a4) where
445454
pretty (x1,x2,x3,x4) = tupled [pretty x1, pretty x2, pretty x3, pretty x4]
446455

447456
-- | >>> pretty (123, "hello", False, (), 3.14)
448457
-- (123, hello, False, (), 3.14)
449458
--
450-
-- @since FIXME
459+
-- @since 1.7.2
451460
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5) => Pretty (a1,a2,a3,a4,a5) where
452461
pretty (x1,x2,x3,x4,x5) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5]
453462

454463
-- | >>> pretty (123, "hello", False, (), 3.14, Just 2.71)
455464
-- (123, hello, False, (), 3.14, 2.71)
456465
--
457-
-- @since FIXME
466+
-- @since 1.7.2
458467
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5, Pretty a6) => Pretty (a1,a2,a3,a4,a5,a6) where
459468
pretty (x1,x2,x3,x4,x5,x6) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5, pretty x6]
460469

461470
-- | >>> pretty (123, "hello", False, (), 3.14, Just 2.71, [1,2,3])
462471
-- (123, hello, False, (), 3.14, 2.71, [1, 2, 3])
463472
--
464-
-- @since FIXME
473+
-- @since 1.7.2
465474
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5, Pretty a6, Pretty a7) => Pretty (a1,a2,a3,a4,a5,a6,a7) where
466475
pretty (x1,x2,x3,x4,x5,x6,x7) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5, pretty x6, pretty x7]
467476

@@ -506,55 +515,80 @@ instance Pretty Lazy.Text
506515
-- []
507516
instance Pretty Void where pretty = absurd
508517

518+
-- | @since 1.7.2
509519
instance PrettyAnn ann Int where prettyAnn = pretty
520+
-- | @since 1.7.2
510521
instance PrettyAnn ann Int8 where prettyAnn = pretty
522+
-- | @since 1.7.2
511523
instance PrettyAnn ann Int16 where prettyAnn = pretty
524+
-- | @since 1.7.2
512525
instance PrettyAnn ann Int32 where prettyAnn = pretty
526+
-- | @since 1.7.2
513527
instance PrettyAnn ann Int64 where prettyAnn = pretty
528+
-- | @since 1.7.2
514529
instance PrettyAnn ann Word where prettyAnn = pretty
530+
-- | @since 1.7.2
515531
instance PrettyAnn ann Word8 where prettyAnn = pretty
532+
-- | @since 1.7.2
516533
instance PrettyAnn ann Word16 where prettyAnn = pretty
534+
-- | @since 1.7.2
517535
instance PrettyAnn ann Word32 where prettyAnn = pretty
536+
-- | @since 1.7.2
518537
instance PrettyAnn ann Word64 where prettyAnn = pretty
519538

539+
-- | @since 1.7.2
520540
instance PrettyAnn ann Integer where prettyAnn = pretty
521541

522542
#if NATURAL_IN_BASE
543+
-- | @since 1.7.2
523544
instance PrettyAnn ann Natural where prettyAnn = pretty
524545
#endif
525546

547+
-- | @since 1.7.2
548+
-- | @since 1.7.2
526549
instance PrettyAnn ann Float where prettyAnn = pretty
527550

551+
-- | @since 1.7.2
528552
instance PrettyAnn ann Double where prettyAnn = pretty
529553

554+
-- | @since 1.7.2
530555
instance (PrettyAnn ann a1, PrettyAnn ann a2) => PrettyAnn ann (a1,a2) where
531556
prettyAnn (x1,x2) = tupled [prettyAnn x1, prettyAnn x2]
532557

558+
-- | @since 1.7.2
533559
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3) => PrettyAnn ann (a1,a2,a3) where
534560
prettyAnn (x1,x2,x3) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3]
535561

562+
-- | @since 1.7.2
536563
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4) => PrettyAnn ann (a1,a2,a3,a4) where
537564
prettyAnn (x1,x2,x3,x4) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4]
538565

566+
-- | @since 1.7.2
539567
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4, PrettyAnn ann a5) => PrettyAnn ann (a1,a2,a3,a4,a5) where
540568
prettyAnn (x1,x2,x3,x4,x5) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5]
541569

570+
-- | @since 1.7.2
542571
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4, PrettyAnn ann a5, PrettyAnn ann a6) => PrettyAnn ann (a1,a2,a3,a4,a5,a6) where
543572
prettyAnn (x1,x2,x3,x4,x5,x6) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5, prettyAnn x6]
544573

574+
-- | @since 1.7.2
545575
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4, PrettyAnn ann a5, PrettyAnn ann a6, PrettyAnn ann a7) => PrettyAnn ann (a1,a2,a3,a4,a5,a6,a7) where
546576
prettyAnn (x1,x2,x3,x4,x5,x6,x7) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5, prettyAnn x6, prettyAnn x7]
547577

578+
-- | @since 1.7.2
548579
instance PrettyAnn ann a => PrettyAnn ann (Maybe a) where
549580
prettyAnn = maybe mempty prettyAnn
550581
prettyAnnList = prettyAnnList . catMaybes
551582

552583
#ifdef MIN_VERSION_text
584+
-- | @since 1.7.2
553585
instance PrettyAnn ann Text where prettyAnn = pretty
554586

587+
-- | @since 1.7.2
555588
instance PrettyAnn ann Lazy.Text where prettyAnn = pretty
556589
#endif
557590

591+
-- | @since 1.7.2
558592
instance PrettyAnn ann Void where prettyAnn = absurd
559593

560594

0 commit comments

Comments
 (0)