mainland-pretty 0.4.1.4 → 0.5.0.0
raw patch · 3 files changed
+18/−10 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.PrettyPrint.Mainland: infixl 3 <|>
+ Text.PrettyPrint.Mainland: infixr 5 <//>
+ Text.PrettyPrint.Mainland: infixr 6 <+>
+ Text.PrettyPrint.Mainland: pprPrecList :: Pretty a => Int -> [a] -> Doc
- Text.PrettyPrint.Mainland: class Pretty a where ppr = pprPrec 0 pprPrec _ = ppr pprList xs = list (map ppr xs)
+ Text.PrettyPrint.Mainland: class Pretty a where ppr = pprPrec 0 pprPrec _ = ppr pprPrecList _ = pprList pprList xs = list (map ppr xs)
Files
- LICENSE +1/−1
- Text/PrettyPrint/Mainland.hs +13/−6
- mainland-pretty.cabal +4/−3
LICENSE view
@@ -48,7 +48,7 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Copyright (c) 2015-2016+Copyright (c) 2015-2017 Drexel University. Redistribution and use in source and binary forms, with or without
Text/PrettyPrint/Mainland.hs view
@@ -2,7 +2,7 @@ -- Module : Text.PrettyPrint.Mainland -- Copyright : (c) 2006-2011 Harvard University -- (c) 2011-2012 Geoffrey Mainland--- (c) 2015-2016 Drexel University+-- (c) 2015-2017 Drexel University -- License : BSD-style -- Maintainer : mainland@drexel.edu --@@ -310,9 +310,11 @@ x <+> Empty = x x <+> y = x <> space <> y --- | Concatenates two documents with a 'line' in between.+-- | Concatenates two documents with a 'line' in between, with identity 'empty'. (</>) :: Doc -> Doc -> Doc-x </> y = x <> line <> y+Empty </> y = y+x </> Empty = x+x </> y = x <> line <> y -- | Concatenates two documents with a 'softline' in between, with identity -- 'empty'.@@ -813,14 +815,19 @@ #endif ppr :: a -> Doc pprPrec :: Int -> a -> Doc- pprList :: [a] -> Doc + pprList :: [a] -> Doc+ pprPrecList :: Int -> [a] -> Doc+ ppr = pprPrec 0 pprPrec _ = ppr- pprList xs = list (map ppr xs) + pprPrecList _ = pprList+ pprList xs = list (map ppr xs)+ instance Pretty a => Pretty [a] where- ppr = pprList+ ppr = pprList+ pprPrec = pprPrecList instance Pretty a => Pretty (Maybe a) where pprPrec _ Nothing = empty
mainland-pretty.cabal view
@@ -1,15 +1,15 @@ name: mainland-pretty-version: 0.4.1.4+version: 0.5.0.0 cabal-version: >= 1.6 license: BSD3 license-file: LICENSE copyright: (c) 2006-2011 Harvard University (c) 2011-2012 Geoffrey Mainland- (c) 2015-2016 Drexel University+ (c) 2015-2017 Drexel University author: Geoffrey Mainland <mainland@drexel.edu> maintainer: Geoffrey Mainland <mainland@drexel.edu> stability: alpha-homepage: http://www.cs.drexel.edu/~mainland/+homepage: https://github.com/mainland/mainland-pretty category: Text synopsis: Pretty printing designed for printing source code. description: Pretty printing designed for printing source code based on@@ -18,6 +18,7 @@ locations associated with pretty printed values and output appropriate #line pragmas and its ability to produce output in the form of lazy text using a builder.+tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.3, GHC==7.10.3, GHC==8.0.1 build-type: Simple