packages feed

prettyprinter-compat-ansi-wl-pprint 1.0.1 → 1.0.2

raw patch · 4 files changed

+25/−39 lines, 4 filesdep +semigroupsdep ~basedep ~prettyprinterdep ~prettyprinter-ansi-terminalnew-uploader

Dependencies added: semigroups

Dependency ranges changed: base, prettyprinter, prettyprinter-ansi-terminal, text

Files

− CONTRIBUTORS.md
@@ -1,22 +0,0 @@-# Contributors--A list of people that have contributed to this library, be it code, ideas, or-even just as rubber ducks. :-)--Ordered by earliest appearance in the git log.--## `prettyprinter` library (this one)--- David Luposchainsky, @quchen – current maintainer--## `ansi-wl-pprint` (origin forked from)--- Edward Kmett, @edwardk – maintainer of `ansi-wl-pprint`-- Herbert Valerio Riedel, @hvr-- Bradford Larsen-- Sebastian Witte-- Andrew Shulaev-- David Fox-- Max Bolingbroke-- Samir Jindel-- Bryan O'Sullivan, @bos
README.md view
@@ -6,7 +6,9 @@  This allows easily transitioning dependent packages from the old to the new package, by simply replacing `ansi-wl-pprint` with `prettyprinter-ansi-terminal`-in the `.cabal` file.+in the `.cabal` file. For adapting third party plugins that output+`ansi-wl-pprint` data, use the proper converter from the+`prettyprinter-convert-ansi-wl-pprint` module.  Note that this package is **only for transitional purposes**, and therefore deprecated and wholly undocumented. For new development, use the current version
prettyprinter-compat-ansi-wl-pprint.cabal view
@@ -1,5 +1,5 @@ name:                prettyprinter-compat-ansi-wl-pprint-version:             1.0.1+version:             1.0.2 cabal-version:       >= 1.10 category:            User Interfaces, Text synopsis:            Drop-in compatibility package to migrate from »ansi-wl-pprint« to »prettyprinter«.@@ -7,13 +7,12 @@ license:             BSD2 license-file:        LICENSE.md extra-source-files:  README.md-                   , CONTRIBUTORS.md author:              David Luposchainsky maintainer:          David Luposchainsky <dluposchainsky at google> bug-reports:         http://github.com/quchen/prettyprinter/issues homepage:            http://github.com/quchen/prettyprinter build-type:          Simple-tested-with:         GHC==7.8.4, GHC==7.10.2, GHC==7.10.3, GHC==8.0.1, GHC==8.0.2+tested-with:         GHC==9.0.1, GHC==8.10.4, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2  source-repository head   type: git@@ -26,11 +25,13 @@     default-language: Haskell2010     other-extensions:           CPP-        , LambdaCase         , OverloadedStrings      build-depends:-          base >= 4.7 && < 5-        , text == 1.2.*-        , prettyprinter < 1.2-        , prettyprinter-ansi-terminal >= 1.1 && < 1.2+          base                        >= 4.5 && < 5 && < 5+        , text                        >= 1.2+        , prettyprinter               >= 1.7.0+        , prettyprinter-ansi-terminal >= 1.1++    if !impl(ghc >= 8.0)+        build-depends: semigroups >= 0.1
src/Text/PrettyPrint/ANSI/Leijen.hs view
@@ -1,5 +1,7 @@-module Text.PrettyPrint.ANSI.Leijen {-# DEPRECATED "Compatibility module for users of ansi-wl-pprint - use Data.Text.Prettyprint.Doc instead" #-} (+{-# LANGUAGE CPP #-} +module Text.PrettyPrint.ANSI.Leijen {-# DEPRECATED "Compatibility module for users of ansi-wl-pprint - use \"Prettyprinter\" instead" #-} (+     Doc, putDoc, hPutDoc, empty, char, text, (<>), nest, line, linebreak, group,     softline, softbreak, hardline, flatAlt, renderSmart, align, hang, indent,     encloseSep, list, tupled, semiBraces, (<+>), (<$>), (</>), (<$$>), (<//>),@@ -17,19 +19,22 @@  ) where --+#if MIN_VERSION_base(4,8,0) import Prelude hiding ((<$>))+#else+import Prelude+#endif -import           Data.Monoid import qualified Data.Text.Lazy as TL import           System.IO -import           Data.Text.Prettyprint.Doc                 (Pretty (..))-import qualified Data.Text.Prettyprint.Doc                 as New-import qualified Data.Text.Prettyprint.Doc.Render.Terminal as NewT-+import           Prettyprinter                 (Pretty (..))+import qualified Prettyprinter                 as New+import qualified Prettyprinter.Render.Terminal as NewT +#if !(MIN_VERSION_base(4,11,0))+import Data.Semigroup+#endif  type Doc = New.Doc NewT.AnsiStyle type SimpleDoc = New.SimpleDocStream NewT.AnsiStyle