text-generic-pretty: A generic, derivable, haskell pretty printer.
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-126.96.36.199/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
[Skip to Readme]
|Dependencies||base (>=4.8 && <5), containers, ghc-prim, groom, ixset-typed, protolude, QuickCheck, string-conversions, text, time (>=1.5), unordered-containers, wl-pprint-text (<1.2) [details]|
|Revised||Revision 1 made by HerbertValerioRiedel at 2018-08-29T20:01:02Z|
|Category||Text, Generics, Pretty Printer|
|Source repo||head: git clone firstname.lastname@example.org:joe9/GenericPretty.git|
|Uploaded||by joe9 at 2016-12-24T04:36:36Z|
|Downloads||803 total (3 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs not available [build log]
Last success reported on 2016-12-24 [all 3 reports]
- text-generic-pretty-1.2.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees