Hello community,

here is the log from the commit of package ghc-ansi-terminal for 
openSUSE:Leap:15.2 checked in at 2020-03-13 10:56:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/ghc-ansi-terminal (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.ghc-ansi-terminal.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-ansi-terminal"

Fri Mar 13 10:56:40 2020 rev:13 rq:782953 version:0.10.3

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/ghc-ansi-terminal/ghc-ansi-terminal.changes    
2020-02-19 18:37:36.297841862 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.ghc-ansi-terminal.new.3160/ghc-ansi-terminal.changes
  2020-03-13 10:56:43.152406617 +0100
@@ -1,0 +2,9 @@
+Thu Feb 27 14:17:50 UTC 2020 - [email protected]
+
+- Update ansi-terminal to version 0.10.3.
+  Version 0.10.3
+  --------------
+  * Add `getCursorPosition` as a synonym of `getCursorPosition0` and deprecate 
the
+    latter.
+
+-------------------------------------------------------------------

Old:
----
  ansi-terminal-0.10.2.tar.gz

New:
----
  ansi-terminal-0.10.3.tar.gz

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

Other differences:
------------------
++++++ ghc-ansi-terminal.spec ++++++
--- /var/tmp/diff_new_pack.VZICw2/_old  2020-03-13 10:56:43.688406999 +0100
+++ /var/tmp/diff_new_pack.VZICw2/_new  2020-03-13 10:56:43.692407002 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-ansi-terminal
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name ansi-terminal
 Name:           ghc-%{pkg_name}
-Version:        0.10.2
+Version:        0.10.3
 Release:        0
 Summary:        Simple ANSI terminal support, with Windows compatibility
 License:        BSD-3-Clause

++++++ ansi-terminal-0.10.2.tar.gz -> ansi-terminal-0.10.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/CHANGELOG.md 
new/ansi-terminal-0.10.3/CHANGELOG.md
--- old/ansi-terminal-0.10.2/CHANGELOG.md       2019-11-21 00:13:27.000000000 
+0100
+++ new/ansi-terminal-0.10.3/CHANGELOG.md       2020-02-08 21:13:04.000000000 
+0100
@@ -1,6 +1,11 @@
 Changes
 =======
 
+Version 0.10.3
+--------------
+* Add `getCursorPosition` as a synonym of `getCursorPosition0` and deprecate 
the
+  latter.
+
 Version 0.10.2
 --------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/ansi-terminal.cabal 
new/ansi-terminal-0.10.3/ansi-terminal.cabal
--- old/ansi-terminal-0.10.2/ansi-terminal.cabal        2019-11-20 
23:52:51.000000000 +0100
+++ new/ansi-terminal-0.10.3/ansi-terminal.cabal        2020-02-08 
21:19:11.000000000 +0100
@@ -1,5 +1,5 @@
 Name:                ansi-terminal
-Version:             0.10.2
+Version:             0.10.3
 Cabal-Version:       >= 1.8
 Category:            User Interfaces
 Synopsis:            Simple ANSI terminal support, with Windows compatibility
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/app/Example.hs 
new/ansi-terminal-0.10.3/app/Example.hs
--- old/ansi-terminal-0.10.2/app/Example.hs     2019-02-01 22:16:17.000000000 
+0100
+++ new/ansi-terminal-0.10.3/app/Example.hs     2020-02-08 21:13:04.000000000 
+0100
@@ -388,7 +388,7 @@
   --          11111111112222222222
   -- 12345678901234567890123456789
   -- Report cursor position here:|
-  result <- getCursorPosition0
+  result <- getCursorPosition
   putStrLn " (3rd row, 29th column) to stdin, as CSI 3 ; 29 R.\n"
   case result of
     Just (row, col) -> putStrLn $ "The cursor was at row number " ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ansi-terminal-0.10.2/src/System/Console/ANSI/Codes.hs 
new/ansi-terminal-0.10.3/src/System/Console/ANSI/Codes.hs
--- old/ansi-terminal-0.10.2/src/System/Console/ANSI/Codes.hs   2019-09-05 
22:30:23.000000000 +0200
+++ new/ansi-terminal-0.10.3/src/System/Console/ANSI/Codes.hs   2020-02-08 
21:13:04.000000000 +0100
@@ -165,7 +165,7 @@
 -- Note that the information that is emitted is 1-based (the top-left corner is
 -- at row 1 column 1) but 'setCursorPositionCode' is 0-based.
 --
--- In isolation of 'getReportedCursorPosition' or 'getCursorPosition0', this
+-- In isolation of 'getReportedCursorPosition' or 'getCursorPosition', this
 -- function may be of limited use on Windows operating systems because of
 -- difficulties in obtaining the data emitted into the console input stream.
 -- The function 'hGetBufNonBlocking' in module "System.IO" does not work on
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/src/System/Console/ANSI/Unix.hs 
new/ansi-terminal-0.10.3/src/System/Console/ANSI/Unix.hs
--- old/ansi-terminal-0.10.2/src/System/Console/ANSI/Unix.hs    2019-11-18 
21:30:00.000000000 +0100
+++ new/ansi-terminal-0.10.3/src/System/Console/ANSI/Unix.hs    2020-02-08 
21:13:04.000000000 +0100
@@ -105,10 +105,10 @@
 
 -- hGetCursorPosition :: Handle -> IO (Maybe (Int, Int))
 -- (See Common-Include.hs for Haddock documentation)
-hGetCursorPosition h = fmap to0base <$> getCursorPosition
+hGetCursorPosition h = fmap to0base <$> getCursorPosition'
  where
   to0base (row, col) = (row - 1, col - 1)
-  getCursorPosition = do
+  getCursorPosition' = do
     input <- bracket (hGetBuffering stdin) (hSetBuffering stdin) $ \_ -> do
       hSetBuffering stdin NoBuffering -- set no buffering (the contents of the
                                       -- buffer will be discarded, so this 
needs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ansi-terminal-0.10.2/src/System/Console/ANSI/Windows/Emulator.hs 
new/ansi-terminal-0.10.3/src/System/Console/ANSI/Windows/Emulator.hs
--- old/ansi-terminal-0.10.2/src/System/Console/ANSI/Windows/Emulator.hs        
2019-11-19 23:32:07.000000000 +0100
+++ new/ansi-terminal-0.10.3/src/System/Console/ANSI/Windows/Emulator.hs        
2020-02-08 21:13:04.000000000 +0100
@@ -485,12 +485,12 @@
 
 -- hGetCursorPosition :: Handle -> IO (Maybe (Int, Int))
 -- (See Common-Include.hs for Haddock documentation)
-hGetCursorPosition h = fmap to0base <$> getCursorPosition
+hGetCursorPosition h = fmap to0base <$> getCursorPosition'
  where
   to0base (row, col) = (row - 1, col - 1)
-  getCursorPosition = CE.catch getCursorPosition' getCPExceptionHandler
+  getCursorPosition' = CE.catch getCursorPosition'' getCPExceptionHandler
    where
-    getCursorPosition' = do
+    getCursorPosition'' = do
       withHandleToHANDLE stdin flush -- Flush the console input buffer
       hReportCursorPosition h
       hFlush h -- ensure the report cursor position code is sent to the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/src/System/Console/ANSI.hs 
new/ansi-terminal-0.10.3/src/System/Console/ANSI.hs
--- old/ansi-terminal-0.10.2/src/System/Console/ANSI.hs 2019-11-18 
21:30:00.000000000 +0100
+++ new/ansi-terminal-0.10.3/src/System/Console/ANSI.hs 2020-02-08 
21:13:04.000000000 +0100
@@ -29,7 +29,7 @@
 
 The functions moving the cursor to an absolute position are 0-based (the
 top-left corner is considered to be at row 0 column 0) (see 
'setCursorPosition')
-and so is 'getCursorPosition0'. The \'ANSI\' standards themselves are 1-based
+and so is 'getCursorPosition'. The \'ANSI\' standards themselves are 1-based
 (that is, the top-left corner is considered to be at row 1 column 1) and some
 functions reporting the position of the cursor are too (see
 'reportCursorPosition').
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/src/includes/Common-Include.hs 
new/ansi-terminal-0.10.3/src/includes/Common-Include.hs
--- old/ansi-terminal-0.10.2/src/includes/Common-Include.hs     2019-11-19 
23:36:37.000000000 +0100
+++ new/ansi-terminal-0.10.3/src/includes/Common-Include.hs     2020-02-08 
21:13:04.000000000 +0100
@@ -72,7 +72,7 @@
 restoreCursor :: IO ()
 
 -- | Looking for a way to get the cursors position? See
--- 'getCursorPosition0'.
+-- 'getCursorPosition'.
 --
 -- Emit the cursor position into the console input stream, immediately after
 -- being recognised on the output stream, as:
@@ -82,7 +82,7 @@
 -- at row 1 column 1) but 'setCursorColumn' and 'setCursorPosition' are
 -- 0-based.
 --
--- In isolation of 'getReportedCursorPosition' or 'getCursorPosition0', this
+-- In isolation of 'getReportedCursorPosition' or 'getCursorPosition', this
 -- function may be of limited use on Windows operating systems because of
 -- difficulties in obtaining the data emitted into the console input stream.
 -- The function 'hGetBufNonBlocking' in module "System.IO" does not work on
@@ -238,9 +238,16 @@
 -- as mintty, that are not based on the Win32 console of the Windows API.
 -- (Command Prompt and PowerShell are based on the Win32 console.)
 --
+-- @since 0.10.3
+getCursorPosition :: IO (Maybe (Int, Int))
+getCursorPosition = hGetCursorPosition stdout
+
+-- | A synonym for 'getCursorPosition'.
+--
 -- @since 0.8.2
+{-# DEPRECATED getCursorPosition0 "Use getCursorPosition instead." #-}
 getCursorPosition0 :: IO (Maybe (Int, Int))
-getCursorPosition0 = hGetCursorPosition stdout
+getCursorPosition0 = getCursorPosition
 
 -- | Attempts to get the reported cursor position, combining the functions
 -- 'hReportCursorPosition' (with the specified handle),
@@ -260,7 +267,7 @@
 hGetCursorPosition :: Handle -> IO (Maybe (Int, Int))
 
 -- | Attempts to get the current terminal size (height in rows, width in
--- columns), by using 'getCursorPosition0' to query the console input stream
+-- columns), by using 'getCursorPosition' to query the console input stream
 -- after attempting to set the cursor position beyond the bottom right corner 
of
 -- the terminal. Uses 'stdout'. If 'stdout' will be redirected, see
 -- 'hGetTerminalSize' for a more general function.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ansi-terminal-0.10.2/src/includes/Exports-Include.hs 
new/ansi-terminal-0.10.3/src/includes/Exports-Include.hs
--- old/ansi-terminal-0.10.2/src/includes/Exports-Include.hs    2019-11-18 
21:30:00.000000000 +0100
+++ new/ansi-terminal-0.10.3/src/includes/Exports-Include.hs    2020-02-08 
21:13:04.000000000 +0100
@@ -111,7 +111,7 @@
   , hSupportsANSIWithoutEmulation
 
     -- * Getting the cursor position
-  , getCursorPosition0
+  , getCursorPosition
   , hGetCursorPosition
   , getReportedCursorPosition
   , cursorPosition
@@ -119,3 +119,6 @@
     -- * Getting the terminal size
   , getTerminalSize
   , hGetTerminalSize
+
+    -- * Deprecated
+  , getCursorPosition0


Reply via email to