Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-http-types for openSUSE:Factory 
checked in at 2026-11-06 19:49:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-types (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-types.new.3759290 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-types"

Fri Nov  6 19:49:14 2026 rev:18 rq:1395542 version:0.12.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-types/ghc-http-types.changes    
2026-06-28 21:06:51.526730504 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-http-types.new.3759290/ghc-http-types.changes   
    2026-11-06 19:55:58.970173176 +0100
@@ -1,0 +2,8 @@
+Thu Aug 13 12:48:46 UTC 2026 - Peter Simons <[email protected]>
+
+- Update http-types to version 0.12.6.
+  ## 0.12.6 [2026-08-13]
+
+  * Remove `array` dependency
+
+-------------------------------------------------------------------

Old:
----
  http-types-0.12.5.tar.gz

New:
----
  http-types-0.12.6.tar.gz

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

Other differences:
------------------
++++++ ghc-http-types.spec ++++++
--- /var/tmp/diff_new_pack.U7LKAf/_old  2026-11-06 19:56:00.366231630 +0100
+++ /var/tmp/diff_new_pack.U7LKAf/_new  2026-11-06 19:56:00.370231798 +0100
@@ -20,15 +20,13 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.12.5
+Version:        0.12.6
 Release:        0
 Summary:        Generic HTTP types for Haskell (for both client and server 
code)
 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
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-array-devel
-BuildRequires:  ghc-array-prof
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel

++++++ http-types-0.12.5.tar.gz -> http-types-0.12.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-types-0.12.5/CHANGELOG.md 
new/http-types-0.12.6/CHANGELOG.md
--- old/http-types-0.12.5/CHANGELOG.md  2026-05-31 22:56:18.000000000 +0200
+++ new/http-types-0.12.6/CHANGELOG.md  2026-08-13 14:46:05.000000000 +0200
@@ -1,5 +1,9 @@
 # Changelog for `http-types`
 
+## 0.12.6 [2026-08-13]
+
+* Remove `array` dependency
+
 ## 0.12.5 [2026-05-31]
 
 * Add status `451 Unavailable For Legal Reasons`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-types-0.12.5/Network/HTTP/Types/Method.hs 
new/http-types-0.12.6/Network/HTTP/Types/Method.hs
--- old/http-types-0.12.5/Network/HTTP/Types/Method.hs  2026-05-31 
22:52:20.000000000 +0200
+++ new/http-types-0.12.6/Network/HTTP/Types/Method.hs  2026-06-29 
16:50:43.000000000 +0200
@@ -1,5 +1,6 @@
 {-# LANGUAGE DeriveDataTypeable #-}
 {-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE OverloadedStrings #-}
 
 -- | Types and constants for HTTP methods.
 --
@@ -32,11 +33,9 @@
 )
 where
 
-import Control.Arrow ((|||))
-import Data.Array (Array, Ix, assocs, listArray, (!))
 import qualified Data.ByteString as B
-import qualified Data.ByteString.Char8 as B8
 import Data.Data (Data)
+import Data.Ix (Ix)
 import GHC.Generics (Generic)
 
 -- $setup
@@ -123,13 +122,8 @@
 -- The reason is that methodList is used with lookup.
 -- lookup is probably faster for these few cases than setting up an elaborate 
data structure.
 
--- FIXME: listArray (minBound, maxBound) $ fmap fst methodList
-methodArray :: Array StdMethod Method
-methodArray = listArray (minBound, maxBound) $ map (B8.pack . show) [minBound 
:: StdMethod .. maxBound]
-
--- FIXME: map (\m -> (B8.pack $ show m, m)) [minBound .. maxBound]
 methodList :: [(Method, StdMethod)]
-methodList = map (\(a, b) -> (b, a)) (assocs methodArray)
+methodList = map (\m -> (renderStdMethod m, m)) [minBound .. maxBound]
 
 -- | Convert a method 'B.ByteString' to a 'StdMethod' if possible.
 --
@@ -143,10 +137,20 @@
 --
 -- @since 0.3.0
 renderMethod :: Either B.ByteString StdMethod -> Method
-renderMethod = id ||| renderStdMethod
+renderMethod = either id renderStdMethod
 
 -- | Convert a 'StdMethod' to a 'B.ByteString'.
 --
 -- @since 0.2.0
 renderStdMethod :: StdMethod -> Method
-renderStdMethod m = methodArray ! m
+renderStdMethod method =
+    case method of
+        GET -> "GET"
+        POST -> "POST"
+        HEAD -> "HEAD"
+        PUT -> "PUT"
+        DELETE -> "DELETE"
+        TRACE -> "TRACE"
+        CONNECT -> "CONNECT"
+        OPTIONS -> "OPTIONS"
+        PATCH -> "PATCH"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-types-0.12.5/http-types.cabal 
new/http-types-0.12.6/http-types.cabal
--- old/http-types-0.12.5/http-types.cabal      2026-05-31 23:06:00.000000000 
+0200
+++ new/http-types-0.12.6/http-types.cabal      2026-08-13 14:46:46.000000000 
+0200
@@ -1,6 +1,6 @@
 Cabal-version:       2.2
 Name:                http-types
-Version:             0.12.5
+Version:             0.12.6
 Synopsis:            Generic HTTP types for Haskell (for both client and 
server code).
 Description:         Types and functions to describe and handle HTTP concepts.
                      Including "methods", "headers", "query strings", "paths" 
and "HTTP versions".
@@ -24,7 +24,7 @@
 Source-repository this
   type: git
   location: https://github.com/Vlix/http-types.git
-  tag: v0.12.5
+  tag: v0.12.6
 
 Source-repository head
   type: git
@@ -41,7 +41,6 @@
   GHC-Options:         -Wall
   Build-depends:       base >= 4.8 && < 5,
                        bytestring >= 0.10.6.0 && < 1,
-                       array >= 0.5.1.0 && < 0.6,
                        case-insensitive >= 1.2.0.2 && < 1.3,
                        text >= 1.2.0.2 && < 3
   Default-language:    Haskell2010

Reply via email to