packages feed

GenericPretty 1.1.4 → 1.1.5

raw patch · 3 files changed

+8/−8 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.4
+Version:             1.1.5
 
 -- A short (one-line) description of the package.
 Synopsis:            A generic, derivable, haskell pretty printer.
README view
@@ -55,9 +55,9 @@ The package is installed in the same way as any other package. The steps are:
   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 and unpack "GenericPretty-1.1.4.tar.gz"
+  1. Download and unpack "GenericPretty-1.1.5.tar.gz"
   2. Move to the correct directory: 
-      $ cd GenericPretty-1.1.4
+      $ cd GenericPretty-1.1.5
   3. Run the following haskell commands to install the library globally:
       $ runhaskell Setup configure 
       $ runhaskell Setup build
Text/PrettyPrint/GenericPretty.hs view
@@ -93,8 +93,8 @@ -- >                 parenLen = if(d > appPrec) then 1 else 0
 
 class Out a where
-    -- | 'docPrec' is the equivalent of 'Prelude.showsPrec'
-    -- Convert a value to a pretty printable 'Pretty.Doc'.
+  -- | 'docPrec' is the equivalent of 'Prelude.showsPrec'
+  -- Convert a value to a pretty printable 'Pretty.Doc'.
   docPrec :: Int  -- ^ the operator precedence of the enclosing
                   -- context (a number from @0@ to @11@).
                   -- Function application has precedence @10@. 
@@ -258,9 +258,9 @@       pfn = out1 f t d p
       pgn = out1 g t d p
       
-    -- if the second value of the :*: is in parens, nest it, otherwise just check for an extra paren space
-	  -- needs to get the string representation of the first elements in the left and right Doc lists 
-	  -- to be able to determine the correct indentation
+      -- if the second value of the :*: is in parens, nest it, otherwise just check for an extra paren space
+      -- needs to get the string representation of the first elements in the left and right Doc lists 
+      -- to be able to determine the correct indentation
       checkIndent :: [Doc] -> [Doc]
       checkIndent [] = []
       checkIndent m@(x:xs)