Skip to content

Commit 55b16e1

Browse files
authored
Prepare releases for all packages (#284)
Assisted-by: GLM-5 via Fireworks AI <noreply@fireworks.ai>
1 parent 7bfc862 commit 55b16e1

10 files changed

Lines changed: 72 additions & 17 deletions

File tree

prettyprinter-ansi-terminal/CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
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+
- [Remove compatibility code for GHC < 8](https://github.com/quchen/prettyprinter/pull/285)
7+
- [Make it compile with MicroHs](https://github.com/quchen/prettyprinter/pull/270)
8+
9+
[1.1.4]: https://github.com/quchen/prettyprinter/compare/ansi-terminal-v1.1.3...ansi-terminal-v1.1.4
410

511
# [1.1.3]
612

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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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+
- [Remove compatibility code for GHC < 8](https://github.com/quchen/prettyprinter/pull/285)
5+
- [Make it compile with MicroHs](https://github.com/quchen/prettyprinter/pull/270)
6+
7+
[1.1.1]: https://github.com/quchen/prettyprinter/compare/compat-ansi-wl-pprint-1.1...compat-ansi-wl-pprint-1.1.1
48

59
# [1.1]
610

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

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

517
# [1.7.1]
618

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: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ class Pretty a where
290290
-- , (1, [2, 2, 2, 2, 2, 2, 2, 2])
291291
-- , (1, [2, 2, 2, 2, 2, 2, 2, 2]) ] ]
292292

293+
-- | @since 1.7.2
293294
instance ann ~ Void => Pretty (Doc ann) where
294295
pretty = vacuous
295296

@@ -345,7 +346,7 @@ instance Pretty Char where
345346
-- | This class is similar to 'Pretty', but allows you to embed annotations in
346347
-- the 'Doc'.
347348
--
348-
-- @since FIXME
349+
-- @since 1.7.2
349350
class PrettyAnn ann a where
350351

351352
prettyAnn :: a -> Doc ann
@@ -356,25 +357,33 @@ class PrettyAnn ann a where
356357
prettyAnnList :: [a] -> Doc ann
357358
prettyAnnList = align . list . map prettyAnn
358359

360+
-- | @since 1.7.2
359361
instance PrettyAnn ann (Doc ann) where
360362
prettyAnn = id
361363

364+
-- | @since 1.7.2
362365
instance PrettyAnn ann a => PrettyAnn ann (Const a b) where
363366
prettyAnn = prettyAnn . getConst
364367

368+
-- | @since 1.7.2
365369
instance PrettyAnn ann a => PrettyAnn ann (Identity a) where
366370
prettyAnn = prettyAnn . runIdentity
367371

372+
-- | @since 1.7.2
368373
instance PrettyAnn ann a => PrettyAnn ann [a] where
369374
prettyAnn = prettyAnnList
370375

376+
-- | @since 1.7.2
371377
instance PrettyAnn ann a => PrettyAnn ann (NonEmpty a) where
372378
prettyAnn (x:|xs) = prettyAnnList (x:xs)
373379

380+
-- | @since 1.7.2
374381
instance PrettyAnn ann () where prettyAnn = pretty
375382

383+
-- | @since 1.7.2
376384
instance PrettyAnn ann Bool where prettyAnn = pretty
377385

386+
-- | @since 1.7.2
378387
instance PrettyAnn ann Char where
379388
prettyAnn = pretty
380389
prettyAnnList = prettyList
@@ -430,28 +439,28 @@ instance (Pretty a1, Pretty a2, Pretty a3) => Pretty (a1,a2,a3) where
430439
-- | >>> pretty (123, "hello", False, ())
431440
-- (123, hello, False, ())
432441
--
433-
-- @since FIXME
442+
-- @since 1.7.2
434443
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4) => Pretty (a1,a2,a3,a4) where
435444
pretty (x1,x2,x3,x4) = tupled [pretty x1, pretty x2, pretty x3, pretty x4]
436445

437446
-- | >>> pretty (123, "hello", False, (), 3.14)
438447
-- (123, hello, False, (), 3.14)
439448
--
440-
-- @since FIXME
449+
-- @since 1.7.2
441450
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5) => Pretty (a1,a2,a3,a4,a5) where
442451
pretty (x1,x2,x3,x4,x5) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5]
443452

444453
-- | >>> pretty (123, "hello", False, (), 3.14, Just 2.71)
445454
-- (123, hello, False, (), 3.14, 2.71)
446455
--
447-
-- @since FIXME
456+
-- @since 1.7.2
448457
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5, Pretty a6) => Pretty (a1,a2,a3,a4,a5,a6) where
449458
pretty (x1,x2,x3,x4,x5,x6) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5, pretty x6]
450459

451460
-- | >>> pretty (123, "hello", False, (), 3.14, Just 2.71, [1,2,3])
452461
-- (123, hello, False, (), 3.14, 2.71, [1, 2, 3])
453462
--
454-
-- @since FIXME
463+
-- @since 1.7.2
455464
instance (Pretty a1, Pretty a2, Pretty a3, Pretty a4, Pretty a5, Pretty a6, Pretty a7) => Pretty (a1,a2,a3,a4,a5,a6,a7) where
456465
pretty (x1,x2,x3,x4,x5,x6,x7) = tupled [pretty x1, pretty x2, pretty x3, pretty x4, pretty x5, pretty x6, pretty x7]
457466

@@ -496,53 +505,77 @@ instance Pretty Lazy.Text
496505
-- []
497506
instance Pretty Void where pretty = absurd
498507

508+
-- | @since 1.7.2
499509
instance PrettyAnn ann Int where prettyAnn = pretty
510+
-- | @since 1.7.2
500511
instance PrettyAnn ann Int8 where prettyAnn = pretty
512+
-- | @since 1.7.2
501513
instance PrettyAnn ann Int16 where prettyAnn = pretty
514+
-- | @since 1.7.2
502515
instance PrettyAnn ann Int32 where prettyAnn = pretty
516+
-- | @since 1.7.2
503517
instance PrettyAnn ann Int64 where prettyAnn = pretty
518+
-- | @since 1.7.2
504519
instance PrettyAnn ann Word where prettyAnn = pretty
520+
-- | @since 1.7.2
505521
instance PrettyAnn ann Word8 where prettyAnn = pretty
522+
-- | @since 1.7.2
506523
instance PrettyAnn ann Word16 where prettyAnn = pretty
524+
-- | @since 1.7.2
507525
instance PrettyAnn ann Word32 where prettyAnn = pretty
526+
-- | @since 1.7.2
508527
instance PrettyAnn ann Word64 where prettyAnn = pretty
509528

529+
-- | @since 1.7.2
510530
instance PrettyAnn ann Integer where prettyAnn = pretty
511531

532+
-- | @since 1.7.2
512533
instance PrettyAnn ann Natural where prettyAnn = pretty
513534

535+
-- | @since 1.7.2
514536
instance PrettyAnn ann Float where prettyAnn = pretty
515537

538+
-- | @since 1.7.2
516539
instance PrettyAnn ann Double where prettyAnn = pretty
517540

541+
-- | @since 1.7.2
518542
instance (PrettyAnn ann a1, PrettyAnn ann a2) => PrettyAnn ann (a1,a2) where
519543
prettyAnn (x1,x2) = tupled [prettyAnn x1, prettyAnn x2]
520544

545+
-- | @since 1.7.2
521546
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3) => PrettyAnn ann (a1,a2,a3) where
522547
prettyAnn (x1,x2,x3) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3]
523548

549+
-- | @since 1.7.2
524550
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4) => PrettyAnn ann (a1,a2,a3,a4) where
525551
prettyAnn (x1,x2,x3,x4) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4]
526552

553+
-- | @since 1.7.2
527554
instance (PrettyAnn ann a1, PrettyAnn ann a2, PrettyAnn ann a3, PrettyAnn ann a4, PrettyAnn ann a5) => PrettyAnn ann (a1,a2,a3,a4,a5) where
528555
prettyAnn (x1,x2,x3,x4,x5) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5]
529556

557+
-- | @since 1.7.2
530558
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
531559
prettyAnn (x1,x2,x3,x4,x5,x6) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5, prettyAnn x6]
532560

561+
-- | @since 1.7.2
533562
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
534563
prettyAnn (x1,x2,x3,x4,x5,x6,x7) = tupled [prettyAnn x1, prettyAnn x2, prettyAnn x3, prettyAnn x4, prettyAnn x5, prettyAnn x6, prettyAnn x7]
535564

565+
-- | @since 1.7.2
536566
instance PrettyAnn ann a => PrettyAnn ann (Maybe a) where
537567
prettyAnn = maybe mempty prettyAnn
538568
prettyAnnList = prettyAnnList . catMaybes
539569

540570
#ifdef MIN_VERSION_text
571+
-- | @since 1.7.2
541572
instance PrettyAnn ann Text where prettyAnn = pretty
542573

574+
-- | @since 1.7.2
543575
instance PrettyAnn ann Lazy.Text where prettyAnn = pretty
544576
#endif
545577

578+
-- | @since 1.7.2
546579
instance PrettyAnn ann Void where prettyAnn = absurd
547580

548581

0 commit comments

Comments
 (0)