Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-text-ansi for openSUSE:Factory 
checked in at 2023-09-28 00:26:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-text-ansi (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-text-ansi.new.23327 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-text-ansi"

Thu Sep 28 00:26:18 2023 rev:2 rq:1113899 version:0.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-text-ansi/ghc-text-ansi.changes      
2023-09-21 22:24:02.471026964 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-text-ansi.new.23327/ghc-text-ansi.changes   
2023-09-28 00:33:44.934547860 +0200
@@ -1,0 +2,14 @@
+Sun Sep 24 15:55:44 UTC 2023 - Peter Simons <[email protected]>
+
+- Update text-ansi to version 0.3.0.
+  ## [0.3.0] - 2023-09-24
+
+  - Switch the underlying text builder from `text-builder` to 
`text-builder-linear`. This also affects the API provided by
+    `Text.Builder.ANSI`; users that were relying on the `Buidler` type from 
`text-builder` specificially are encouraged
+    to simply use older versions of this package until they are able to update 
their own code to use `text-builder-linear`
+    instead.
+
+    The motivation for this change is performance and encoraging the ecosystem 
to move in the right direction. See the
+    `text-builder-linear` project for more details. In a nutshell, it is the 
superior builder type ;)
+
+-------------------------------------------------------------------

Old:
----
  text-ansi-0.2.1.1.tar.gz

New:
----
  text-ansi-0.3.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-text-ansi.spec ++++++
--- /var/tmp/diff_new_pack.kfp3tJ/_old  2023-09-28 00:33:46.090589588 +0200
+++ /var/tmp/diff_new_pack.kfp3tJ/_new  2023-09-28 00:33:46.094589733 +0200
@@ -19,7 +19,7 @@
 %global pkg_name text-ansi
 %global pkgver %{pkg_name}-%{version}
 Name:           ghc-%{pkg_name}
-Version:        0.2.1.1
+Version:        0.3.0
 Release:        0
 Summary:        Text styling for ANSI terminals
 License:        BSD-3-Clause
@@ -29,8 +29,8 @@
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-rpm-macros
-BuildRequires:  ghc-text-builder-devel
-BuildRequires:  ghc-text-builder-prof
+BuildRequires:  ghc-text-builder-linear-devel
+BuildRequires:  ghc-text-builder-linear-prof
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-text-prof
 ExcludeArch:    %{ix86}

++++++ text-ansi-0.2.1.1.tar.gz -> text-ansi-0.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/CHANGELOG.md 
new/text-ansi-0.3.0/CHANGELOG.md
--- old/text-ansi-0.2.1.1/CHANGELOG.md  2001-09-09 03:46:40.000000000 +0200
+++ new/text-ansi-0.3.0/CHANGELOG.md    2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,13 @@
+## [0.3.0] - 2023-09-24
+
+- Switch the underlying text builder from `text-builder` to 
`text-builder-linear`. This also affects the API provided by
+  `Text.Builder.ANSI`; users that were relying on the `Buidler` type from 
`text-builder` specificially are encouraged
+  to simply use older versions of this package until they are able to update 
their own code to use `text-builder-linear`
+  instead.
+
+  The motivation for this change is performance and encoraging the ecosystem 
to move in the right direction. See the
+  `text-builder-linear` project for more details. In a nutshell, it is the 
superior builder type ;)
+
 ## [0.2.1.1] - 2023-05-11
 
 - [#6](https://github.com/mitchellwrosen/text-ansi/pull/6) Fix Windows linker 
errors on GHC 9.4.5+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/cabal.project 
new/text-ansi-0.3.0/cabal.project
--- old/text-ansi-0.2.1.1/cabal.project 2001-09-09 03:46:40.000000000 +0200
+++ new/text-ansi-0.3.0/cabal.project   1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-packages: .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/src/String/ANSI.hs 
new/text-ansi-0.3.0/src/String/ANSI.hs
--- old/text-ansi-0.2.1.1/src/String/ANSI.hs    2001-09-09 03:46:40.000000000 
+0200
+++ new/text-ansi-0.3.0/src/String/ANSI.hs      2001-09-09 03:46:40.000000000 
+0200
@@ -53,9 +53,9 @@
 where
 
 import qualified Data.Text as Text
+import Data.Text.Builder.Linear (Builder)
+import qualified Data.Text.Builder.Linear as Builder
 import Data.Word (Word8)
-import Text.Builder (Builder)
-import qualified Text.Builder as Builder
 import qualified Text.Builder.ANSI as Builder.ANSI
 
 -- $intro
@@ -333,7 +333,7 @@
 
 lift :: (Builder -> Builder) -> String -> String
 lift f =
-  Text.unpack . Builder.run . f . Builder.string
+  Text.unpack . Builder.runBuilder . f . foldMap Builder.fromChar
 -- Don't inline before phase 2
 {-# NOINLINE [2] lift #-}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/src/Text/ANSI.hs 
new/text-ansi-0.3.0/src/Text/ANSI.hs
--- old/text-ansi-0.2.1.1/src/Text/ANSI.hs      2001-09-09 03:46:40.000000000 
+0200
+++ new/text-ansi-0.3.0/src/Text/ANSI.hs        2001-09-09 03:46:40.000000000 
+0200
@@ -53,9 +53,9 @@
 where
 
 import Data.Text (Text)
+import Data.Text.Builder.Linear (Builder)
+import qualified Data.Text.Builder.Linear as Builder
 import Data.Word (Word8)
-import Text.Builder (Builder)
-import qualified Text.Builder as Builder
 import qualified Text.Builder.ANSI as Builder.ANSI
 
 -- $intro
@@ -333,7 +333,7 @@
 
 lift :: (Builder -> Builder) -> Text -> Text
 lift f =
-  Builder.run . f . Builder.text
+  Builder.runBuilder . f . Builder.fromText
 -- Don't inline before phase 2
 {-# NOINLINE [2] lift #-}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/src/Text/Builder/ANSI.hs 
new/text-ansi-0.3.0/src/Text/Builder/ANSI.hs
--- old/text-ansi-0.2.1.1/src/Text/Builder/ANSI.hs      2001-09-09 
03:46:40.000000000 +0200
+++ new/text-ansi-0.3.0/src/Text/Builder/ANSI.hs        2001-09-09 
03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE CPP #-}
+{-# LANGUAGE MagicHash #-}
 
 module Text.Builder.ANSI
   ( -- $intro
@@ -54,11 +54,8 @@
   )
 where
 
-#if !MIN_VERSION_base(4,13,0)
-import Data.Semigroup ((<>))
-#endif
-import Text.Builder (Builder)
-import qualified Text.Builder as Builder
+import Data.Text.Builder.Linear (Builder)
+import qualified Data.Text.Builder.Linear as Builder
 import Data.Word (Word8)
 import System.IO.Unsafe (unsafePerformIO)
 import System.Posix.Internals (c_isatty)
@@ -79,269 +76,269 @@
 -- | Black foreground.
 black :: Builder -> Builder
 black =
-  foreground (Builder.string "30")
+  foreground (Builder.fromAddr "30"#)
 {-# INLINE black #-}
 
 -- | Red foreground.
 red :: Builder -> Builder
 red =
-  foreground (Builder.string "31")
+  foreground (Builder.fromAddr "31"#)
 {-# INLINE red #-}
 
 -- | Green foreground.
 green :: Builder -> Builder
 green =
-  foreground (Builder.string "32")
+  foreground (Builder.fromAddr "32"#)
 {-# INLINE green #-}
 
 -- | Yellow foreground.
 yellow :: Builder -> Builder
 yellow =
-  foreground (Builder.string "33")
+  foreground (Builder.fromAddr "33"#)
 {-# INLINE yellow #-}
 
 -- | Blue foreground.
 blue :: Builder -> Builder
 blue =
-  foreground (Builder.string "34")
+  foreground (Builder.fromAddr "34"#)
 {-# INLINE blue #-}
 
 -- | Magenta foreground.
 magenta :: Builder -> Builder
 magenta =
-  foreground (Builder.string "35")
+  foreground (Builder.fromAddr "35"#)
 {-# INLINE magenta #-}
 
 -- | Cyan foreground.
 cyan :: Builder -> Builder
 cyan =
-  foreground (Builder.string "36")
+  foreground (Builder.fromAddr "36"#)
 {-# INLINE cyan #-}
 
 -- | White foreground.
 white :: Builder -> Builder
 white =
-  foreground (Builder.string "37")
+  foreground (Builder.fromAddr "37"#)
 {-# INLINE white #-}
 
 -- | Bright black foreground.
 brightBlack :: Builder -> Builder
 brightBlack =
-  foreground (Builder.string "90")
+  foreground (Builder.fromAddr "90"#)
 {-# INLINE brightBlack #-}
 
 -- | Bright red foreground.
 brightRed :: Builder -> Builder
 brightRed =
-  foreground (Builder.string "91")
+  foreground (Builder.fromAddr "91"#)
 {-# INLINE brightRed #-}
 
 -- | Bright green foreground.
 brightGreen :: Builder -> Builder
 brightGreen =
-  foreground (Builder.string "92")
+  foreground (Builder.fromAddr "92"#)
 {-# INLINE brightGreen #-}
 
 -- | Bright yellow foreground.
 brightYellow :: Builder -> Builder
 brightYellow =
-  foreground (Builder.string "93")
+  foreground (Builder.fromAddr "93"#)
 {-# INLINE brightYellow #-}
 
 -- | Bright blue foreground.
 brightBlue :: Builder -> Builder
 brightBlue =
-  foreground (Builder.string "94")
+  foreground (Builder.fromAddr "94"#)
 {-# INLINE brightBlue #-}
 
 -- | Bright magenta foreground.
 brightMagenta :: Builder -> Builder
 brightMagenta =
-  foreground (Builder.string "95")
+  foreground (Builder.fromAddr "95"#)
 {-# INLINE brightMagenta #-}
 
 -- | Bright cyan foreground.
 brightCyan :: Builder -> Builder
 brightCyan =
-  foreground (Builder.string "96")
+  foreground (Builder.fromAddr "96"#)
 {-# INLINE brightCyan #-}
 
 -- | Bright white foreground.
 brightWhite :: Builder -> Builder
 brightWhite =
-  foreground (Builder.string "97")
+  foreground (Builder.fromAddr "97"#)
 {-# INLINE brightWhite #-}
 
 -- | RGB foreground.
 rgb :: Word8 -> Word8 -> Word8 -> Builder -> Builder
 rgb r g b =
-  foreground (Builder.string "38;2;" <> Builder.decimal r <> semi <> 
Builder.decimal g <> semi <> Builder.decimal b)
+  foreground (Builder.fromAddr "38;2;"# <> Builder.fromDec r <> semi <> 
Builder.fromDec g <> semi <> Builder.fromDec b)
 {-# INLINE rgb #-}
 
 foreground :: Builder -> Builder -> Builder
 foreground s =
-  surround s (Builder.string "39")
+  surround s (Builder.fromAddr "39"#)
 {-# INLINE foreground #-}
 
 -- | Black background.
 blackBg :: Builder -> Builder
 blackBg =
-  background (Builder.string "40")
+  background (Builder.fromAddr "40"#)
 {-# INLINE blackBg #-}
 
 -- | Red background.
 redBg :: Builder -> Builder
 redBg =
-  background (Builder.string "41")
+  background (Builder.fromAddr "41"#)
 {-# INLINE redBg #-}
 
 -- | Green background.
 greenBg :: Builder -> Builder
 greenBg =
-  background (Builder.string "42")
+  background (Builder.fromAddr "42"#)
 {-# INLINE greenBg #-}
 
 -- | Yellow background.
 yellowBg :: Builder -> Builder
 yellowBg =
-  background (Builder.string "43")
+  background (Builder.fromAddr "43"#)
 {-# INLINE yellowBg #-}
 
 -- | Blue background.
 blueBg :: Builder -> Builder
 blueBg =
-  background (Builder.string "44")
+  background (Builder.fromAddr "44"#)
 {-# INLINE blueBg #-}
 
 -- | Magenta background.
 magentaBg :: Builder -> Builder
 magentaBg =
-  background (Builder.string "45")
+  background (Builder.fromAddr "45"#)
 {-# INLINE magentaBg #-}
 
 -- | Cyan background.
 cyanBg :: Builder -> Builder
 cyanBg =
-  background (Builder.string "46")
+  background (Builder.fromAddr "46"#)
 {-# INLINE cyanBg #-}
 
 -- | White background.
 whiteBg :: Builder -> Builder
 whiteBg =
-  background (Builder.string "47")
+  background (Builder.fromAddr "47"#)
 {-# INLINE whiteBg #-}
 
 -- | Bright black background.
 brightBlackBg :: Builder -> Builder
 brightBlackBg =
-  background (Builder.string "100")
+  background (Builder.fromAddr "100"#)
 {-# INLINE brightBlackBg #-}
 
 -- | Bright red background.
 brightRedBg :: Builder -> Builder
 brightRedBg =
-  background (Builder.string "101")
+  background (Builder.fromAddr "101"#)
 {-# INLINE brightRedBg #-}
 
 -- | Bright green background.
 brightGreenBg :: Builder -> Builder
 brightGreenBg =
-  background (Builder.string "102")
+  background (Builder.fromAddr "102"#)
 {-# INLINE brightGreenBg #-}
 
 -- | Bright yellow background.
 brightYellowBg :: Builder -> Builder
 brightYellowBg =
-  background (Builder.string "103")
+  background (Builder.fromAddr "103"#)
 {-# INLINE brightYellowBg #-}
 
 -- | Bright blue background.
 brightBlueBg :: Builder -> Builder
 brightBlueBg =
-  background (Builder.string "104")
+  background (Builder.fromAddr "104"#)
 {-# INLINE brightBlueBg #-}
 
 -- | Bright magenta background.
 brightMagentaBg :: Builder -> Builder
 brightMagentaBg =
-  background (Builder.string "105")
+  background (Builder.fromAddr "105"#)
 {-# INLINE brightMagentaBg #-}
 
 -- | Bright cyan background.
 brightCyanBg :: Builder -> Builder
 brightCyanBg =
-  background (Builder.string "106")
+  background (Builder.fromAddr "106"#)
 {-# INLINE brightCyanBg #-}
 
 -- | Bright white background.
 brightWhiteBg :: Builder -> Builder
 brightWhiteBg =
-  background (Builder.string "107")
+  background (Builder.fromAddr "107"#)
 {-# INLINE brightWhiteBg #-}
 
 background :: Builder -> Builder -> Builder
 background s =
-  surround s (Builder.string "49")
+  surround s (Builder.fromAddr "49"#)
 {-# INLINE background #-}
 
 -- | RGB background.
 rgbBg :: Word8 -> Word8 -> Word8 -> Builder -> Builder
 rgbBg r g b =
-  background (Builder.string "48;2;" <> Builder.decimal r <> semi <> 
Builder.decimal g <> semi <> Builder.decimal b)
+  background (Builder.fromAddr "48;2;"# <> Builder.fromDec r <> semi <> 
Builder.fromDec g <> semi <> Builder.fromDec b)
 {-# INLINE rgbBg #-}
 
 -- | __Bold__ style (high intensity).
 bold :: Builder -> Builder
 bold =
-  surround (Builder.string "1") (Builder.string "22")
+  surround (Builder.fromAddr "1"#) (Builder.fromAddr "22"#)
 {-# INLINE bold #-}
 
 -- | Faint style (low intensity).
 faint :: Builder -> Builder
 faint =
-  surround (Builder.string "2") (Builder.string "22")
+  surround (Builder.fromAddr "2"#) (Builder.fromAddr "22"#)
 {-# INLINE faint #-}
 
 -- | /Italic/ style.
 italic :: Builder -> Builder
 italic =
-  surround (Builder.string "3") (Builder.string "23")
+  surround (Builder.fromAddr "3"#) (Builder.fromAddr "23"#)
 {-# INLINE italic #-}
 
 -- | U̲n̲d̲e̲r̲l̲i̲n̲e̲ style.
 underline :: Builder -> Builder
 underline =
-  surround (Builder.string "4") (Builder.string "24")
+  surround (Builder.fromAddr "4"#) (Builder.fromAddr "24"#)
 {-# INLINE underline #-}
 
 -- | D̳o̳u̳b̳l̳e̳ ̳u̳n̳d̳e̳r̳l̳i̳n̳e̳ style.
 doubleUnderline :: Builder -> Builder
 doubleUnderline =
-  surround (Builder.string "21") (Builder.string "24")
+  surround (Builder.fromAddr "21"#) (Builder.fromAddr "24"#)
 {-# INLINE doubleUnderline #-}
 
 -- | S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ style.
 strikethrough :: Builder -> Builder
 strikethrough =
-  surround (Builder.string "9") (Builder.string "29")
+  surround (Builder.fromAddr "9"#) (Builder.fromAddr "29"#)
 {-# INLINE strikethrough #-}
 
 -- | Frame style.
 frame :: Builder -> Builder
 frame =
-  surround (Builder.string "51") (Builder.string "54")
+  surround (Builder.fromAddr "51"#) (Builder.fromAddr "54"#)
 {-# INLINE frame #-}
 
 -- | Encircle style.
 encircle :: Builder -> Builder
 encircle =
-  surround (Builder.string "52") (Builder.string "54")
+  surround (Builder.fromAddr "52"#) (Builder.fromAddr "54"#)
 {-# INLINE encircle #-}
 
 -- | O̅v̅e̅r̅l̅i̅n̅e̅ style.
 overline :: Builder -> Builder
 overline =
-  surround (Builder.string "53") (Builder.string "55")
+  surround (Builder.fromAddr "53"#) (Builder.fromAddr "55"#)
 {-# INLINE overline #-}
 
 
--------------------------------------------------------------------------------
@@ -355,15 +352,15 @@
 
 esc :: Builder
 esc =
-  Builder.string "\ESC["
+  Builder.fromAddr "\ESC["#
 
 m :: Builder
 m =
-  Builder.char 'm'
+  Builder.fromChar 'm'
 
 semi :: Builder
 semi =
-  Builder.char ';'
+  Builder.fromChar ';'
 
 isatty :: Bool
 isatty =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/src/Text/Lazy/Builder/ANSI.hs 
new/text-ansi-0.3.0/src/Text/Lazy/Builder/ANSI.hs
--- old/text-ansi-0.2.1.1/src/Text/Lazy/Builder/ANSI.hs 2001-09-09 
03:46:40.000000000 +0200
+++ new/text-ansi-0.3.0/src/Text/Lazy/Builder/ANSI.hs   2001-09-09 
03:46:40.000000000 +0200
@@ -1,5 +1,3 @@
-{-# LANGUAGE CPP #-}
-
 module Text.Lazy.Builder.ANSI
   ( -- $intro
 
@@ -54,9 +52,6 @@
   )
 where
 
-#if !MIN_VERSION_base(4,13,0)
-import Data.Semigroup ((<>))
-#endif
 import Data.Text.Lazy.Builder (Builder)
 import qualified Data.Text.Lazy.Builder as Builder
 import qualified Data.Text.Lazy.Builder.Int as Builder
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/text-ansi-0.2.1.1/text-ansi.cabal 
new/text-ansi-0.3.0/text-ansi.cabal
--- old/text-ansi-0.2.1.1/text-ansi.cabal       2001-09-09 03:46:40.000000000 
+0200
+++ new/text-ansi-0.3.0/text-ansi.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,7 +1,7 @@
 cabal-version: 2.2
 
 name: text-ansi
-version: 0.2.1.1
+version: 0.3.0
 category: Data
 synopsis: Text styling for ANSI terminals.
 description:
@@ -23,10 +23,9 @@
 license: BSD-3-Clause
 license-file: LICENSE
 build-type: Simple
-tested-with: GHC == 9.2.7, GHC == 9.4.5, GHC == 9.6.1
+tested-with: GHC == 9.2.8, GHC == 9.4.7, GHC == 9.6.2
 
 extra-source-files:
-  cabal.project
   CHANGELOG.md
   README.md
 
@@ -36,9 +35,9 @@
 
 library
   build-depends:
-    base >= 4.9 && < 4.19,
-    text >= 1.0 && < 2.1,
-    text-builder ^>= 0.6.7,
+    base >= 4.16 && < 4.19,
+    text >= 1.0 && < 2.2,
+    text-builder-linear ^>= 0.1.1,
   default-language:
     Haskell2010
   exposed-modules:

Reply via email to