GenericPretty 1.1.1 → 1.1.2
raw patch · 3 files changed
+13/−11 lines, 3 files
Files
GenericPretty.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented. -Version: 1.1.1 +Version: 1.1.2 -- A short (one-line) description of the package. Synopsis: A generic, derivable, haskell pretty printer. @@ -46,23 +46,23 @@ . will fail because of the (Eq a) context. . - *Instalation instructions + *Installation instructions . The package is installed in the same way as any other package. If needed, instructions are provided below. . 0. Make sure you have a version of ghc >= 7.2 installed and that you can use the 'runhaskell' command from the command line. . - 1. Download the file "GenericPretty-1.1.1.tar.gz" from this page. + 1. Download the file "GenericPretty-1.1.2.tar.gz" from this page. . 2. Unpack the file. If using a UNIX system, run . - tar xzf GenericPretty-1.1.1.tar.gz + tar xzf GenericPretty-1.1.2.tar.gz . - If on windows use your preffered unpacking utility(for instance, 7zip : <http://www.7-zip.org/>) + If on windows use your preferred unpacking utility(for instance, 7zip : <http://www.7-zip.org/>) . 3. Move to the correct directory: . - cd GenericPretty-1.1.1 + cd GenericPretty-1.1.2 . 4. Run the following haskell commands to install the library globally .
Text/PrettyPrint/GenericPretty.hs view
@@ -18,7 +18,7 @@ The Generics used are based on those described in the paper "A Generic Deriving Mechanism for Haskell" - by Magalhães, Dijkstra, Jeuring and Löh in Proceedings of the third ACM Haskell symposium on Haskell - (Haskell'2010), pp. 3748, ACM, 2010: <http://dreixel.net/research/pdf/gdmh.pdf> . + (Haskell'2010), pp. 37-48, ACM, 2010: <http://dreixel.net/research/pdf/gdmh.pdf> . There are however several changes between the mechanism described in the paper and the one implemented in GHC which are described here:
Text/PrettyPrint/MyPretty.hs view
@@ -1,4 +1,4 @@-{-# MyPretty is a library that can be used in conjuncture with "Text.PrettyPrint.GenericPretty". +{-| MyPretty is a library that can be used in conjuncture with "Text.PrettyPrint.GenericPretty". This library is a thin wrapper around the "Pretty" library and implements only 'Style' related features. @@ -6,10 +6,12 @@ When that happens "MyPretty" will become obsolete and will be replaced by "Pretty". This library can be imported if the user wants to make custom pretty printing definitions for - his types. The syntax used is that of "Pretty" and "Text.PrettyPrint.HughesPJ". + his types or define a custom printing Style. + The syntax used is that of "Pretty" and "Text.PrettyPrint.HughesPJ". - For an example of a custom definition for a data type see the README file included in the package. -#-} + For an example of a custom definition for a data type and usage of a custom Style + see the README file included in the package. +|-} module Text.PrettyPrint.MyPretty( module Pretty, Style(..), renderStyle, style