GenericPretty: A generic, derivable, haskell pretty printer.
GenericPretty is a haskell library that provides support for automatic
derivation of pretty printing functions on user defined data types.
The Pretty library http://www.haskell.org/ghc/docs/7.0.4/html/libraries/ghc-7.0.4/Pretty.html
is used underneath, the work is done over
The output provided by the library functions is identical to that of Prelude.show, except it has extra whitespace.
This requires the use of the new GHC.Generics features: http://www.haskell.org/haskellwiki/Generics. These 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" : http://dreixel.net/research/pdf/gdmh.pdf . The changes from the original paper on the ghc implementation are described here: http://www.haskell.org/haskellwiki/Generics#Changes_from_the_paper.
For more info and examples of usage please see the README file included in the package and the API at http://haggismcmutton.github.com/GenericPretty/
[Skip to Readme]
- GenericPretty-1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
For package maintainers and hackage trustees
- No Candidates
|Versions [RSS]||0.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, 1.2.2|
|Dependencies||base (>=3 && <5), ghc (>=7.1.20110601), ghc-prim [details]|
|Category||Text, Generics, Pretty Printer|
|Source repo||head: git clone firstname.lastname@example.org:HaggisMcMutton/GenericPretty.git|
|Uploaded||by RazvanRanca at 2011-08-10T03:42:38Z|
|Distributions||LTSHaskell:1.2.2, NixOS:1.2.2, Stackage:1.2.2|
|Reverse Dependencies||18 direct, 14 indirect [details]|
|Downloads||20276 total (41 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]