Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-http-api-data for
openSUSE:Factory checked in at 2026-06-10 16:02:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-api-data (Old)
and /work/SRC/openSUSE:Factory/.ghc-http-api-data.new.2375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-http-api-data"
Wed Jun 10 16:02:17 2026 rev:36 rq:1358393 version:0.6.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-api-data/ghc-http-api-data.changes
2025-04-09 21:50:52.191632967 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-http-api-data.new.2375/ghc-http-api-data.changes
2026-06-10 16:04:44.101515029 +0200
@@ -1,0 +2,8 @@
+Sun Jan 4 19:53:39 UTC 2026 - Peter Simons <[email protected]>
+
+- Update http-api-data to version 0.6.3.
+ 0.6.3
+
+ * Add To/FromForm instances for () and Void
+
+-------------------------------------------------------------------
Old:
----
http-api-data-0.6.2.tar.gz
New:
----
http-api-data-0.6.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-http-api-data.spec ++++++
--- /var/tmp/diff_new_pack.IurULb/_old 2026-06-10 16:04:45.625578187 +0200
+++ /var/tmp/diff_new_pack.IurULb/_new 2026-06-10 16:04:45.625578187 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-http-api-data
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.6.2
+Version: 0.6.3
Release: 0
Summary: Converting to/from HTTP API data like URL pieces, headers and
query parameters
License: BSD-2-Clause
@@ -48,16 +48,12 @@
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-compat-devel
BuildRequires: ghc-time-compat-prof
-BuildRequires: ghc-transformers-devel
-BuildRequires: ghc-transformers-prof
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-uuid-types-devel
BuildRequires: ghc-uuid-types-prof
ExcludeArch: %{ix86}
%if %{with tests}
-BuildRequires: ghc-HUnit-devel
-BuildRequires: ghc-HUnit-prof
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-hspec-devel
++++++ http-api-data-0.6.2.tar.gz -> http-api-data-0.6.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/http-api-data-0.6.2/CHANGELOG.md
new/http-api-data-0.6.3/CHANGELOG.md
--- old/http-api-data-0.6.2/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
+++ new/http-api-data-0.6.3/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
@@ -1,3 +1,7 @@
+0.6.3
+
+* Add To/FromForm instances for () and Void
+
0.6.2
* Support GHC-9.12
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/http-api-data-0.6.2/http-api-data.cabal
new/http-api-data-0.6.3/http-api-data.cabal
--- old/http-api-data-0.6.2/http-api-data.cabal 2001-09-09 03:46:40.000000000
+0200
+++ new/http-api-data-0.6.3/http-api-data.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,6 +1,6 @@
cabal-version: 1.12
name: http-api-data
-version: 0.6.2
+version: 0.6.3
synopsis: Converting to/from HTTP API data like URL pieces, headers and
query parameters.
category: Web
@@ -47,7 +47,6 @@
, bytestring >= 0.10.8.2 && < 0.13
, containers >= 0.6.0.1 && < 0.8
, text >= 1.2.3.0 && < 1.3 || >=2.0 &&
<2.2
- , transformers >= 0.5.6.2 && < 0.7
-- other-dependencies
build-depends:
@@ -94,8 +93,7 @@
, unordered-containers
, uuid-types
- build-depends: HUnit >= 1.6.0.0 && <1.7
- , hspec >= 2.7.1 && <2.12
+ build-depends: hspec >= 2.7.1 && <2.12
, QuickCheck >= 2.13.1 && <2.16
, quickcheck-instances >= 0.3.25.2 && <0.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/http-api-data-0.6.2/src/Web/Internal/FormUrlEncoded.hs
new/http-api-data-0.6.3/src/Web/Internal/FormUrlEncoded.hs
--- old/http-api-data-0.6.2/src/Web/Internal/FormUrlEncoded.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/http-api-data-0.6.3/src/Web/Internal/FormUrlEncoded.hs 2001-09-09
03:46:40.000000000 +0200
@@ -49,7 +49,7 @@
UTCTime, ZonedTime)
import Data.Time.Calendar.Month.Compat (Month)
import Data.Time.Calendar.Quarter.Compat (Quarter, QuarterOfYear
(..))
-import Data.Void (Void)
+import Data.Void (Void, absurd)
import Data.Word (Word16, Word32, Word64, Word8)
import GHC.Exts (Constraint, IsList (..))
import GHC.Generics
@@ -267,6 +267,16 @@
instance ToForm Form where toForm = id
+-- |
+--
+-- @since 0.6.3
+instance ToForm Void where toForm = absurd
+
+-- |
+--
+-- @since 0.6.3
+instance ToForm () where toForm _ = Form HashMap.empty
+
instance (ToFormKey k, ToHttpApiData v) => ToForm [(k, v)] where
toForm = fromList . map (toFormKey *** toQueryParam)
@@ -413,6 +423,16 @@
instance FromForm Form where fromForm = pure
+-- |
+--
+-- @since 0.6.3
+instance FromForm Void where fromForm _ = Left "fromForm: Void"
+
+-- |
+--
+-- @since 0.6.3
+instance FromForm () where fromForm _ = Right ()
+
-- | _NOTE:_ this conversion is unstable and may result in different key order
(but not values).
instance (FromFormKey k, FromHttpApiData v) => FromForm [(k, v)] where
fromForm = fmap (concatMap (\(k, vs) -> map ((,) k) vs)) . toEntriesByKey
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/http-api-data-0.6.2/test/Web/Internal/FormUrlEncodedSpec.hs
new/http-api-data-0.6.3/test/Web/Internal/FormUrlEncodedSpec.hs
--- old/http-api-data-0.6.2/test/Web/Internal/FormUrlEncodedSpec.hs
2001-09-09 03:46:40.000000000 +0200
+++ new/http-api-data-0.6.3/test/Web/Internal/FormUrlEncodedSpec.hs
2001-09-09 03:46:40.000000000 +0200
@@ -39,12 +39,12 @@
it "is the right inverse of ToForm" $ property $ \x (y :: Int) -> do
let f1 = fromList [("rec1", x), ("rec2", toQueryParam y)]
- Right r1 = fromForm f1 :: Either Text SimpleRec
- toForm r1 `shouldBe` f1
+ r1 = fromForm f1 :: Either Text SimpleRec
+ fmap toForm r1 `shouldBe` Right f1
it "returns the underlying error" $ do
let f = fromList [("rec1", "anything"), ("rec2", "bad")]
- Left e = fromForm f :: Either Text SimpleRec
+ e = either id (const "no error") (fromForm f :: Either Text
SimpleRec)
unpack e `shouldContain` "input does not start with a digit"
urlEncoding :: Spec