packages feed

text-generic-pretty

A generic, derivable, haskell pretty printer.

view on Hackage

GenericPretty is a Haskell library that supports automatic derivation of pretty printing functions on user defined data types. The form of geenrics used is based on that introduced in the paper: Magalhaes, Dijkstra, Jeuring, and Loh, A Generic Deriving Mechanism for Haskell, 3'rd ACM Symposium on Haskell, pp. 37-48, September 2010, <http://dx.doi.org/10.1145/1863523.1863529>. Changes from the original paper in the GHC implementation are described here: <http://www.haskell.org/haskellwiki/GHC.Generics#Changes_from_the_paper>. This package requires the use of the new GHC.Generics features <http://www.haskell.org/haskellwiki/GHC.Generics>, present from GHC 7.2. Use of these features is indicated by the DeriveGeneric pragma. or the flag -XDeriveGeneric. Pretty printing produces values of type Text.PrettyPrint.Doc, using the Text.PrettyPrint library <http://www.haskell.org/ghc/docs/latest/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html>. The output provided is a pretty printed version of that provided by Prelude.show. That is, rendering the document provided by this pretty printer yields an output identical to that of Prelude.show, except for extra whitespace. For information about the functions exported by the package please see the API linked further down this page. For examples of usage, both basic and more complex see the README file and the haskell source code files in the TestSuite folder, both included in the package. Finally for installation instructions also see the README file or this page: <http://www.haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package>
versionuploadeduploaderchanges
1.2.12016-12-24 04:36 UTCjoe91 revisions+1774/−0 lines, 15 filesdep +QuickCheckdep +basedep +containerssetup-changed

Dependencies of text-generic-pretty-1.2.1

QuickCheck >=0 2.18.0.0 → 2.19.0.0
2026-09-16 11:18 UTC2.19.0.0+67/−41 lines, 10 filesdep +OneTuplePVP ok
2026-02-26 12:42 UTC2.18.0.0+826/−542 lines, 23 filesPVP ok
2025-10-13 12:40 UTC2.17.1.0+18/−8 lines, 4 filesdep ~randomPVP: major bump suggested
2025-10-07 12:26 UTC2.17.0.0+667/−129 lines, 14 filesdep +data-array-bytedep +hintdep +splitdep −ghc-primdep −old-localedep −old-timedep ~basedep ~randomdep ~template-haskellPVP ok
2025-06-17 07:53 UTC2.16.0.0+477/−86 lines, 15 filesdep ~basenew-uploaderPVP ok

showing 5 of 66 versions

base >=4.8 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

containers >=0 0.8 → 0.8.1
2026-10-04 06:08 UTC0.8.1+8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested
2025-03-01 13:03 UTC0.8+8447/−7031 lines, 37 filesnew-uploaderPVP ok
2023-09-27 12:15 UTC0.7+76/−33 lines, 3 filesPVP ok
2023-09-28 04:21 UTC0.6.8+644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested
2023-02-01 03:11 UTC0.6.7+783/−229 lines, 20 filesPVP: major bump suggested

showing 5 of 43 versions

ghc-prim >=0 0.12.0 → 0.13.0
2024-12-16 09:29 UTC0.13.0+95/−12 lines, 6 filesPVP ok
2025-05-03 11:48 UTC0.12.0+5108/−1582 lines, 15 filesnew-uploaderPVP ok
2023-10-10 00:24 UTC0.11.0+770/−234 lines, 9 filesPVP ok
2023-03-28 14:22 UTC0.10.0+487/−297 lines, 16 filesPVP ok
2022-08-07 20:08 UTC0.9.0+2921/−2018 lines, 14 filesPVP ok

showing 5 of 15 versions

groom >=0 0.1.2 → 0.1.2.1
2017-04-19 02:30 UTC0.1.2.1+38/−3 lines, 3 filesdep +groomdep ~basenew-component:exe:groomPVP ok
2013-04-29 01:23 UTC0.1.2+2/−2 lines, 1 filesPVP ok
2011-04-04 21:13 UTC0.1.1+2/−2 lines, 1 filesdep ~haskell-src-extsPVP ok
2010-07-07 03:20 UTC0.1+51/−0 lines, 3 filesdep +basedep +haskell-src-extssetup-changed
ixset-typed >=0 0.5.1.1 → 0.6
2026-08-19 14:51 UTC0.6+2137/−910 lines, 12 filesdep +tasty-benchdep +timedep −sybdep ~basedep ~containersdep ~deepseqPVP ok
2026-07-13 14:41 UTC0.5.1.1+11/−8 lines, 3 filesdep −HUnitdep −QuickCheckdep ~template-haskellnew-uploaderPVP: major bump suggested
2022-05-10 10:11 UTC0.5.1.0+33/−25 lines, 5 filesdep ~template-haskellPVP: major bump suggested
2020-03-18 14:57 UTC0.5+12/−5 lines, 3 filesdep ~safecopydep ~template-haskellPVP ok
2018-10-01 06:03 UTC0.4.0.1+10/−4 lines, 3 filesdep ~containersdep ~safecopydep ~template-haskellPVP: major bump suggested

showing 5 of 15 versions

protolude >=0 0.3.4 → 0.3.5
2025-05-16 02:18 UTC0.3.5+9/−6 lines, 3 filesdep ~basedep ~ghc-primdep ~hashablePVP: major bump suggested
2024-02-05 03:39 UTC0.3.4+10/−9 lines, 1 filesdep ~containersPVP: major bump suggested
2023-02-16 02:44 UTC0.3.3+14/−5 lines, 3 filesdep ~basedep ~bytestringdep ~deepseqPVP: major bump suggested
2022-06-12 18:31 UTC0.3.2+7/−87 lines, 3 filesdep −directorydep −filepathdep −ghcdep ~basedep ~mtldep ~transformersPVP ok
2022-06-01 11:36 UTC0.3.1+114/−50 lines, 7 filesdep ~basedep ~bytestringdep ~ghc-primnew-uploaderPVP: major bump suggested

showing 5 of 22 versions

string-conversions >=0 0.4 → 0.4.0.1
2016-12-30 04:34 UTC0.4.0.1+340/−294 lines, 7 filesdep +QuickCheckdep +deepseqdep +hspecdep ~basePVP: major bump suggested
2015-06-02 07:43 UTC0.4+101/−3 lines, 3 filesPVP ok
2014-10-01 15:11 UTC0.3.0.3+6/−6 lines, 1 filesdep ~bytestringdep ~textdep ~utf8-string
2014-01-16 07:22 UTC0.3.0.2+2/−2 lines, 1 filesdep ~text
2013-12-17 11:04 UTC0.3.0.1+2/−2 lines, 1 filesdep ~text

showing 5 of 9 versions

tasty >=0 1.5.4 → 1.5.5
2026-10-20 23:13 UTC1.5.5+53/−26 lines, 7 filesdep +terminal-sizePVP ok
2026-03-25 20:04 UTC1.5.4+332/−166 lines, 22 filesdep −semigroupsPVP ok
2025-01-05 19:52 UTC1.5.3+36/−11 lines, 3 filesdep ~containersdep ~optparse-applicativePVP: major bump suggested
2024-11-03 00:34 UTC1.5.2+22/−5 lines, 4 filesdep ~basePVP ok
2024-06-22 10:14 UTC1.5.1+131/−63 lines, 10 filesdep ~basePVP: major bump suggested

showing 5 of 76 versions

tasty-hunit >=0 0.10.1 → 0.10.2
2024-06-22 10:14 UTC0.10.2+15/−7 lines, 4 filesPVP ok
2023-09-10 00:12 UTC0.10.1+30/−52 lines, 5 filesdep ~basedep ~call-stackdep ~tastynew-uploaderPVP ok
2020-12-18 09:42 UTC0.10.0.3+55/−10 lines, 4 filesdep ~basePVP ok
2019-05-15 05:50 UTC0.10.0.2+38/−8 lines, 3 filesdep ~tastyPVP: major bump suggested
2017-12-01 19:24 UTC0.10.0.1+51/−29 lines, 4 filesPVP: major bump suggested

showing 5 of 15 versions

tasty-quickcheck >=0 0.11 → 0.11.1
2025-01-05 19:53 UTC0.11.1+66/−33 lines, 4 filesdep +regex-tdfadep −pcre-lightdep ~QuickCheckdep ~basedep ~optparse-applicativePVP: major bump suggested
2024-06-22 10:14 UTC0.11+132/−49 lines, 4 filesdep ~QuickCheckPVP ok
2023-09-10 00:10 UTC0.10.3+52/−14 lines, 3 filesdep ~QuickCheckdep ~optparse-applicativedep ~randomnew-uploaderPVP ok
2021-11-20 19:17 UTC0.10.2+21/−13 lines, 3 filesdep ~basePVP: major bump suggested
2020-12-18 09:42 UTC0.10.1.2+27/−13 lines, 4 filesdep ~basePVP: major bump suggested

showing 5 of 23 versions

text >=0 2.1.4 → 2.1.5
2026-11-27 23:30 UTC2.1.5+33786/−32979 lines, 58 filesPVP: major bump suggested
2026-01-28 08:30 UTC2.1.4+30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok
2025-08-01 20:08 UTC2.1.3+2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok
2024-10-26 13:22 UTC2.1.2+43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested
2024-02-16 22:16 UTC2.1.1+986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested

showing 5 of 83 versions

time >=1.5 1.16 → 1.16.0.1
2026-07-20 21:55 UTC1.16.0.1+1203/−148 lines, 25 filesPVP ok
2026-05-03 08:43 UTC1.16+353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok
2025-08-04 16:22 UTC1.15+1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok
2024-03-10 22:18 UTC1.14+6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok
2021-10-18 05:36 UTC1.13+1279/−1589 lines, 59 filesdep ~basePVP ok

showing 5 of 48 versions

unordered-containers >=0 0.2.21 → 0.2.21.1
2026-11-30 10:13 UTC0.2.21.1+533/−177 lines, 9 filesPVP: major bump suggested
2025-12-13 23:09 UTC0.2.21+3999/−2731 lines, 20 filesdep −mtldep ~basedep ~bytestringdep ~deepseqPVP: major bump suggested
2025-10-02 07:28 UTC0.2.20.1+106/−52 lines, 12 filesPVP: major bump suggested
2024-01-09 06:48 UTC0.2.20+1023/−941 lines, 12 filesdep ~hashabledep ~template-haskellPVP: major bump suggested
2022-04-24 15:48 UTC0.2.19.1+88/−14 lines, 4 filesdep ~basedep ~template-haskellPVP: major bump suggested

showing 5 of 44 versions

wl-pprint-text <1.2 1.1.1.1 → 1.2.0.2 newer than bounds
2022-01-09 08:05 UTC1.2.0.2 newer than bounds+32/−17 lines, 3 filesdep ~base-compatdep ~textPVP ok
2020-01-28 12:31 UTC1.2.0.1 newer than bounds+9/−3 lines, 2 filesdep ~base-compatPVP: major bump suggested
2018-05-07 01:52 UTC1.2.0.0 newer than bounds+34/−22 lines, 4 filesPVP ok
2018-04-13 12:48 UTC1.1.1.1+24/−13 lines, 4 filesdep ~basedep ~base-compatdep ~textPVP: major bump suggested
2017-01-26 11:56 UTC1.1.1.0+297/−196 lines, 5 filesdep +base-compatdep ~basePVP: major bump suggested

showing 5 of 11 versions

Reverse dependencies

1 packages depend on text-generic-pretty

acme-everything 2018.11.18 requires text-generic-pretty >=0