Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-http-semantics for 
openSUSE:Factory checked in at 2026-11-24 12:30:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-semantics (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-semantics.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-semantics"

Tue Nov 24 12:30:32 2026 rev:3 rq:1399219 version:0.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-semantics/ghc-http-semantics.changes    
2024-12-20 23:11:12.293918222 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-http-semantics.new.1340718/ghc-http-semantics.changes
       2026-11-24 12:36:58.950270248 +0100
@@ -1,0 +2,27 @@
+Thu Oct 29 08:15:04 UTC 2026 - Peter Simons <[email protected]>
+
+- Update http-semantics to version 0.4.2.
+  ## 0.4.2
+
+  * `defaultReadNWith` is `defaultReadN` with an `STM` action beside each
+    receive.  When it fires the read answers with the empty string, which is
+    what `ReadN` already means by end of input, so a reader blocked in it can
+    be given up on without closing the socket under it or throwing into it --
+    neither of which works everywhere.
+
+  ## 0.4.1
+
+  * Add `auxSendInformational` to the server `Aux` for sending 1xx 
informational
+    responses (e.g. 103 Early Hints) ahead of the final response.
+
+  ## 0.4.0
+
+  * This version is idential to v0.3.1 which includes breaking changes
+    and thus is deprecated.
+
+  ## 0.3.1
+
+  * Adding defaultAux and auxSendPing for client.
+  * Adding defaultAux for server.
+
+-------------------------------------------------------------------

Old:
----
  http-semantics-0.3.0.tar.gz

New:
----
  http-semantics-0.4.2.tar.gz

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

Other differences:
------------------
++++++ ghc-http-semantics.spec ++++++
--- /var/tmp/diff_new_pack.ppo1sz/_old  2026-11-24 12:37:00.628341361 +0100
+++ /var/tmp/diff_new_pack.ppo1sz/_new  2026-11-24 12:37:00.634341616 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-http-semantics
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,35 +17,40 @@
 
 
 %global pkg_name http-semantics
-%global pkgver %{pkg_name}-%{version}
-Name:           ghc-%{pkg_name}
-Version:        0.3.0
+%bcond_with ghc_prof
+Name:           ghc-%pkg_name
+Version:        0.4.2
 Release:        0
-Summary:        HTTP senmatics libarry
+%global pkgver %pkg_name-%{version}
+Summary:        HTTP semantics library
 License:        BSD-3-Clause
-URL:            https://hackage.haskell.org/package/%{pkg_name}
-Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+URL:            https://hackage.haskell.org/package/%pkg_name
+Source0:        
https://hackage.haskell.org/package/%pkg_name-%{version}/%pkg_name-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-array-devel
-BuildRequires:  ghc-array-prof
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-case-insensitive-devel
-BuildRequires:  ghc-case-insensitive-prof
 BuildRequires:  ghc-http-types-devel
-BuildRequires:  ghc-http-types-prof
 BuildRequires:  ghc-network-byte-order-devel
-BuildRequires:  ghc-network-byte-order-prof
 BuildRequires:  ghc-network-devel
-BuildRequires:  ghc-network-prof
-BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-rpm-macros >= 2.9.2
+BuildRequires:  ghc-stm-devel
 BuildRequires:  ghc-time-manager-devel
-BuildRequires:  ghc-time-manager-prof
 BuildRequires:  ghc-utf8-string-devel
-BuildRequires:  ghc-utf8-string-prof
 ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-array-prof
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-bytestring-prof
+BuildRequires:  ghc-case-insensitive-prof
+BuildRequires:  ghc-http-types-prof
+BuildRequires:  ghc-network-byte-order-prof
+BuildRequires:  ghc-network-prof
+BuildRequires:  ghc-stm-prof
+BuildRequires:  ghc-time-manager-prof
+BuildRequires:  ghc-utf8-string-prof
+%endif
 
 %description
 Version-independent common parts of HTTP.
@@ -60,24 +65,27 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %pkg_name-%{version}
 
 %build
 %ghc_lib_build
@@ -97,8 +105,10 @@
 %files devel -f %{name}-devel.files
 %doc ChangeLog.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ http-semantics-0.3.0.tar.gz -> http-semantics-0.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-semantics-0.3.0/ChangeLog.md 
new/http-semantics-0.4.2/ChangeLog.md
--- old/http-semantics-0.3.0/ChangeLog.md       2001-09-09 03:46:40.000000000 
+0200
+++ new/http-semantics-0.4.2/ChangeLog.md       2001-09-09 03:46:40.000000000 
+0200
@@ -1,5 +1,28 @@
 # ChangeLog for http-semantics
 
+## 0.4.2
+
+* `defaultReadNWith` is `defaultReadN` with an `STM` action beside each
+  receive.  When it fires the read answers with the empty string, which is
+  what `ReadN` already means by end of input, so a reader blocked in it can
+  be given up on without closing the socket under it or throwing into it --
+  neither of which works everywhere.
+
+## 0.4.1
+
+* Add `auxSendInformational` to the server `Aux` for sending 1xx informational
+  responses (e.g. 103 Early Hints) ahead of the final response.
+
+## 0.4.0
+
+* This version is idential to v0.3.1 which includes breaking changes
+  and thus is deprecated.
+
+## 0.3.1
+
+* Adding defaultAux and auxSendPing for client.
+* Adding defaultAux for server.
+
 ## 0.3.0
 
 * Breaking change: fillFileBodyGetNext takes Sentinel instead of
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-semantics-0.3.0/Network/HTTP/Semantics/Client/Internal.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/Client/Internal.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/Client/Internal.hs  
2001-09-09 03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/Client/Internal.hs  
2001-09-09 03:46:40.000000000 +0200
@@ -2,6 +2,7 @@
     Request (..),
     Response (..),
     Aux (..),
+    defaultAux,
 ) where
 
 import Network.HTTP.Semantics.Types (InpObj (..), OutObj (..))
@@ -16,4 +17,13 @@
 data Aux = Aux
     { auxPossibleClientStreams :: IO Int
     -- ^ How many streams can be created without blocking.
+    , auxSendPing :: IO ()
+    -- ^ Sending a ping.
     }
+
+defaultAux :: Aux
+defaultAux =
+    Aux
+        { auxPossibleClientStreams = return 0
+        , auxSendPing = return ()
+        }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-semantics-0.3.0/Network/HTTP/Semantics/Client.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/Client.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/Client.hs   2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/Client.hs   2001-09-09 
03:46:40.000000000 +0200
@@ -39,7 +39,9 @@
 
     -- * Aux
     Aux,
+    defaultAux,
     auxPossibleClientStreams,
+    auxSendPing,
 
     -- * Types
     Scheme,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-semantics-0.3.0/Network/HTTP/Semantics/FillBuf.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/FillBuf.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/FillBuf.hs  2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/FillBuf.hs  2001-09-09 
03:46:40.000000000 +0200
@@ -1,6 +1,3 @@
-{-# LANGUAGE NamedFieldPuns #-}
-{-# LANGUAGE OverloadedStrings #-}
-{-# LANGUAGE RecordWildCards #-}
 {-# LANGUAGE ScopedTypeVariables #-}
 
 module Network.HTTP.Semantics.FillBuf (
@@ -25,7 +22,7 @@
 import Data.Int (Int64)
 import Data.Maybe
 import Foreign.Ptr (plusPtr)
-import Network.ByteOrder
+import Network.ByteOrder hiding (start)
 import Network.HTTP.Semantics.Client
 
 ----------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-semantics-0.3.0/Network/HTTP/Semantics/ReadN.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/ReadN.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/ReadN.hs    2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/ReadN.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -2,9 +2,11 @@
     -- * Reading n bytes
     ReadN,
     defaultReadN,
+    defaultReadNWith,
 )
 where
 
+import Control.Concurrent.STM
 import qualified Data.ByteString as B
 import Data.IORef
 import Network.Socket
@@ -19,13 +21,25 @@
 -- (It is probably quite rare anyway to want concurrent reads from the /same/
 -- network socket.)
 defaultReadN :: Socket -> IORef (Maybe B.ByteString) -> ReadN
-defaultReadN _ _ 0 = return B.empty
-defaultReadN s ref n = do
+defaultReadN s ref = defaultReadNWith s ref retry
+
+-- | 'defaultReadN' which the caller can give up on.  The 'STM' action is
+-- waited for beside each receive; when it fires, the read answers with the
+-- empty string, which is how 'ReadN' already says that there is nothing more.
+--
+-- /NOTE/: the bytes read so far are discarded, so this ends a connection
+-- rather than pausing one.  The caller cannot tell a give-up from the peer
+-- hanging up; whoever fired the 'STM' action knows which it was.
+--
+-- @since 0.4.2
+defaultReadNWith :: Socket -> IORef (Maybe B.ByteString) -> STM a -> ReadN
+defaultReadNWith _ _ _ 0 = return B.empty
+defaultReadNWith s ref giveUp n = do
     mbs <- readIORef ref
     writeIORef ref Nothing
     case mbs of
         Nothing -> do
-            bs <- N.recv s n
+            bs <- recv1 n
             if B.null bs
                 then return B.empty
                 else
@@ -40,9 +54,10 @@
                 return bs0
             | otherwise -> loop bs
   where
+    recv1 n' = either (const B.empty) id <$> N.recvWith s n' giveUp
     loop bs = do
         let n' = n - B.length bs
-        bs1 <- N.recv s n'
+        bs1 <- recv1 n'
         if B.null bs1
             then return B.empty
             else do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-semantics-0.3.0/Network/HTTP/Semantics/Server/Internal.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/Server/Internal.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/Server/Internal.hs  
2001-09-09 03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/Server/Internal.hs  
2001-09-09 03:46:40.000000000 +0200
@@ -4,6 +4,7 @@
     Aux (..),
 ) where
 
+import qualified Network.HTTP.Types as H
 import Network.Socket (SockAddr)
 import qualified System.TimeManager as T
 
@@ -23,4 +24,10 @@
     -- ^ Local socket address copied from 'Config'.
     , auxPeerSockAddr :: SockAddr
     -- ^ Remove socket address copied from 'Config'.
+    , auxSendInformational :: H.Status -> H.ResponseHeaders -> IO ()
+    -- ^ Send an informational (1xx) response, e.g. 103 Early Hints, on this
+    --   request's stream before the final response. May be called multiple
+    --   times. A no-op in 'defaultAux'.
+    --
+    --   @since 0.4.1
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-semantics-0.3.0/Network/HTTP/Semantics/Server.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/Server.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/Server.hs   2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/Server.hs   2001-09-09 
03:46:40.000000000 +0200
@@ -1,5 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
-
 module Network.HTTP.Semantics.Server (
     -- * HTTP server
     Server,
@@ -20,9 +18,11 @@
 
     -- * Aux
     Aux,
+    defaultAux,
     auxTimeHandle,
     auxMySockAddr,
     auxPeerSockAddr,
+    auxSendInformational,
 
     -- * Response
     Response,
@@ -66,6 +66,8 @@
 import qualified Data.ByteString.UTF8 as UTF8
 import Data.IORef
 import qualified Network.HTTP.Types as H
+import Network.Socket
+import qualified System.TimeManager as T
 
 import Network.HTTP.Semantics
 import Network.HTTP.Semantics.File
@@ -75,6 +77,17 @@
 
 ----------------------------------------------------------------
 
+defaultAux :: Aux
+defaultAux =
+    Aux
+        { auxTimeHandle = T.emptyHandle
+        , auxMySockAddr = SockAddrInet 0 0
+        , auxPeerSockAddr = SockAddrInet 0 0
+        , auxSendInformational = \_ _ -> return ()
+        }
+
+----------------------------------------------------------------
+
 -- | Server type. Server takes a HTTP request, should
 --   generate a HTTP response and push promises, then
 --   should give them to the sending function.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-semantics-0.3.0/Network/HTTP/Semantics/Types.hs 
new/http-semantics-0.4.2/Network/HTTP/Semantics/Types.hs
--- old/http-semantics-0.3.0/Network/HTTP/Semantics/Types.hs    2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/Network/HTTP/Semantics/Types.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -61,7 +61,7 @@
     | OutBodyFile FileSpec
 
 data OutBodyIface = OutBodyIface
-    { outBodyUnmask :: (forall x. IO x -> IO x)
+    { outBodyUnmask :: forall x. IO x -> IO x
     -- ^ Unmask exceptions in the thread spawned for the request body
     --
     -- This is used in the client: we spawn the new thread for the request body
@@ -86,16 +86,20 @@
     -- Using this function instead of 'outBodyPush' can be used to guarantee
     -- that the final HTTP2 DATA frame is marked end-of-stream; with
     -- 'outBodyPush' it may happen that an additional empty DATA frame is used
-    -- for this purpose. Additionally, after calling this function,
-    -- 'outBodyCancel' will be a no-op.
+    -- for this purpose.
     , outBodyCancel :: Maybe SomeException -> IO ()
     -- ^ Cancel the stream
     --
-    -- Sends a @RST_STREAM@ to the peer. If cancelling as the result of an
-    -- exception, a 'Just' should be provided which specifies the exception
-    -- which will be stored locally as the reason for cancelling the stream; in
-    -- this case, the error code sent with the @RST_STREAM@ will be
-    -- @INTERNAL_ERROR@ (see
+    -- Cancelling a streams sends a @RST_STREAM@ to the network peer, which
+    -- tells them that they should stop sending us messages. As such, it may
+    -- still be necessary to call 'outBodyCancel' after 'outBodyPushFinal',
+    -- which merely tells the peer that /we/ will no longer send /them/ any 
more
+    -- messages.
+    --
+    -- If cancelling as the result of an exception, a 'Just' should be provided
+    -- which specifies the exception, which will be stored locally as the 
reason
+    -- for cancelling the stream; in this case, the error code sent with the
+    -- @RST_STREAM@ will be @INTERNAL_ERROR@ (see
     -- <https://datatracker.ietf.org/doc/html/rfc7540#section-7>). If 'Nothing'
     -- is given, the error code will be @CANCEL@.
     --
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-semantics-0.3.0/http-semantics.cabal 
new/http-semantics-0.4.2/http-semantics.cabal
--- old/http-semantics-0.3.0/http-semantics.cabal       2001-09-09 
03:46:40.000000000 +0200
+++ new/http-semantics-0.4.2/http-semantics.cabal       2001-09-09 
03:46:40.000000000 +0200
@@ -1,12 +1,12 @@
 cabal-version:   3.0
 name:            http-semantics
-version:         0.3.0
+version:         0.4.2
 license:         BSD-3-Clause
 license-file:    LICENSE
 maintainer:      Kazu Yamamoto <[email protected]>
 author:          Kazu Yamamoto <[email protected]>
 homepage:        https://github.com/kazu-yamamoto/http-semantics
-synopsis:        HTTP senmatics libarry
+synopsis:        HTTP semantics library
 description:     Version-independent common parts of HTTP
 category:        Network
 build-type:      Simple
@@ -44,7 +44,8 @@
         bytestring >=0.10,
         case-insensitive,
         http-types >=0.12 && <0.13,
-        network,
+        network >=3.2.10,
         network-byte-order,
-        time-manager,
+        stm,
+        time-manager >= 0.2.4,
         utf8-string

Reply via email to