The GenericPretty package

[Tags: bsd3, library]

GenericPretty is a haskell library that provides support for automatic derivation of pretty printing functions on user defined data types. The Pretty library is used underneath, the work is done over Pretty.Doc types.

The output provided by the library functions is identical to that of, except it has extra whitespace.

This requires the use of the new GHC.Generics features: As of 9.08.2011, these aren't present in the stable GHC releases, but seem to be present in the GHC HEAD development snapshots >= 7.1.20110601.

The Generics used are based on those described in the paper A Generic Deriving Mechanism for Haskell : . The changes from the original paper on the ghc implementation are described here:

For more info and examples of usage please see the README file included in the package and the API at

Installation of the package is straightforward, if needed, instructions can be found, for instance, here:


Versions0.1.0, 0.1.1, 0.1.2, 0.1.3, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.2.0, 1.2.1
Change logNone available
Dependenciesbase (>=3 && <5), ghc (>=7.1.20110601), ghc-prim
AuthorRazvan Ranca
CategoryText, Generics, Pretty Printer
Home page
Source repositoryhead: git clone
UploadedWed Aug 10 04:43:38 UTC 2011 by RazvanRanca
DistributionsLTSHaskell:1.2.1, NixOS:1.2.1, Stackage:1.2.1
Downloads4167 total (291 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees