packages feed

pretty 1.1.3.1 → 1.1.3.2

raw patch · 6 files changed

+27/−25 lines, 6 files

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # Pretty library change log +## 1.1.3.2 -- 19th March, 2015++* Fix bug with haddock documentation.+* Clean up module intro documentation.++## 1.1.3.1 -- 11th March, 2015++* Add support for annotations in pretty (by Trevor Elliott).+ ## 1.1.2.1 -- 25th December, 2014  * Fix overly-strict issue preventing use of pretty for very large
pretty.cabal view
@@ -1,5 +1,5 @@ name:          pretty-version:       1.1.3.1+version:       1.1.3.2 synopsis:      Pretty-printing library description:         This package contains a pretty-printing library, a set of API's
src/Text/PrettyPrint.hs view
@@ -15,7 +15,7 @@ -- that provides a way to easily print out text in a consistent format -- of your choosing. ----- This module should be used as opposed to the "Text.PrettyPrint.HughesPJ"+-- This module should be used as opposed to the 'Text.PrettyPrint.HughesPJ' -- module. Both are equivalent though as this module simply re-exports the -- other. --
src/Text/PrettyPrint/Annotated.hs view
@@ -4,20 +4,20 @@ ----------------------------------------------------------------------------- -- | -- Module      :  Text.PrettyPrint.Annotated--- Copyright   :  (c) The University of Glasgow 2001+-- Copyright   :  (c) Trevor Elliott <revor@galois.com> 2015 -- License     :  BSD-style (see the file LICENSE) --  -- Maintainer  :  David Terei <code@davidterei.com> -- Stability   :  stable -- Portability :  portable ----- Provides a collection of pretty printer combinators, a set of API's--- that provides a way to easily print out text in a consistent format--- of your choosing.+-- This module provides a version of pretty that allows for annotations to be+-- attached to documents. Annotations are arbitrary pieces of metadata that can+-- be attached to sub-documents. ----- This module should be used as opposed to the "Text.PrettyPrint.HughesPJ"--- module. Both are equivalent though as this module simply re-exports the--- other.+-- This module should be used as opposed to the+-- 'Text.PrettyPrint.Annotated.HughesPJ' module. Both are equivalent though as+-- this module simply re-exports the other. -- ----------------------------------------------------------------------------- 
src/Text/PrettyPrint/Annotated/HughesPJ.hs view
@@ -8,24 +8,16 @@ ----------------------------------------------------------------------------- -- | -- Module      :  Text.PrettyPrint.Annotated.HughesPJ--- Copyright   :  (c) The University of Glasgow 2001+-- Copyright   :  (c) Trevor Elliott <revor@galois.com> 2015 -- License     :  BSD-style (see the file LICENSE) -- -- Maintainer  :  David Terei <code@davidterei.com> -- Stability   :  stable -- Portability :  portable ----- Provides a collection of pretty printer combinators, a set of API's--- that provides a way to easily print out text in a consistent format--- of your choosing.------ Originally designed by John Hughes's and Simon Peyton Jones's.------ For more information you can refer to the--- <http://belle.sourceforge.net/doc/hughes95design.pdf original paper> that--- serves as the basis for this libraries design:--- /The Design -- of a Pretty-printing Library/ by John Hughes, in Advanced--- Functional Programming, 1995+-- This module provides a version of pretty that allows for annotations to be+-- attached to documents. Annotations are arbitrary pieces of metadata that can+-- be attached to sub-documents. -- ----------------------------------------------------------------------------- @@ -1079,7 +1071,7 @@    mkSpan a end start = Span { spanStart      = start                             , spanLength     = start - end-                              -- ^ this seems wrong, but remember that it's+                              -- this seems wrong, but remember that it's                               -- working backwards at this point                             , spanAnnotation = a } 
src/Text/PrettyPrint/Annotated/HughesPJClass.hs view
@@ -5,17 +5,18 @@ ----------------------------------------------------------------------------- -- | -- Module      :  Text.PrettyPrint.Annotated.HughesPJClass--- Copyright   :  (c) Lennart Augustsson 2014+-- Copyright   :  (c) Trevor Elliott <revor@galois.com> 2015 -- License     :  BSD-style (see the file LICENSE) -- -- Maintainer  :  David Terei <code@davidterei.com> -- Stability   :  stable -- Portability :  portable ----- Pretty printing class, simlar to 'Show' but nicer looking. +-- Pretty printing class, simlar to 'Show' but nicer looking. -- -- Note that the precedence level is a 'Rational' so there is an unlimited--- number of levels. This module re-exports 'Text.PrettyPrint.HughesPJ'.+-- number of levels. This module re-exports+-- 'Text.PrettyPrint.Annotated.HughesPJ'. -- -----------------------------------------------------------------------------