Hello community,

here is the log from the commit of package ghc-assoc for openSUSE:Factory 
checked in at 2020-08-18 12:24:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-assoc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-assoc.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-assoc"

Tue Aug 18 12:24:36 2020 rev:2 rq:825795 version:1.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-assoc/ghc-assoc.changes      2020-06-19 
16:57:03.727625641 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-assoc.new.3399/ghc-assoc.changes    
2020-08-18 12:24:38.095812168 +0200
@@ -1,0 +2,8 @@
+Mon Aug 10 08:46:44 UTC 2020 - [email protected]
+
+- Update assoc to version 1.0.2.
+  ## 1.0.2
+
+  - Add 'Swap' instances for more n-tuples
+
+-------------------------------------------------------------------

Old:
----
  assoc-1.0.1.tar.gz
  assoc.cabal

New:
----
  assoc-1.0.2.tar.gz

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

Other differences:
------------------
++++++ ghc-assoc.spec ++++++
--- /var/tmp/diff_new_pack.BHOe1k/_old  2020-08-18 12:24:40.011812968 +0200
+++ /var/tmp/diff_new_pack.BHOe1k/_new  2020-08-18 12:24:40.015812969 +0200
@@ -18,13 +18,12 @@
 
 %global pkg_name assoc
 Name:           ghc-%{pkg_name}
-Version:        1.0.1
+Version:        1.0.2
 Release:        0
 Summary:        Swap and assoc: Symmetric and Semigroupy Bifunctors
 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
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bifunctors-devel
 BuildRequires:  ghc-rpm-macros
@@ -47,7 +46,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ assoc-1.0.1.tar.gz -> assoc-1.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.1/CHANGELOG.md new/assoc-1.0.2/CHANGELOG.md
--- old/assoc-1.0.1/CHANGELOG.md        2001-09-09 03:46:40.000000000 +0200
+++ new/assoc-1.0.2/CHANGELOG.md        2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,7 @@
+## 1.0.2
+
+- Add 'Swap' instances for more n-tuples
+
 ## 1.0.1
 
 - Add `Assoc Const` and `Tagged` instances
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.1/assoc.cabal new/assoc-1.0.2/assoc.cabal
--- old/assoc-1.0.1/assoc.cabal 2001-09-09 03:46:40.000000000 +0200
+++ new/assoc-1.0.2/assoc.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:      1.12
 name:               assoc
-version:            1.0.1
+version:            1.0.2
 license:            BSD3
 license-file:       LICENSE
 synopsis:           swap and assoc: Symmetric and Semigroupy Bifunctors
@@ -27,7 +27,8 @@
      || ==8.2.2
      || ==8.4.4
      || ==8.6.5
-     || ==8.8.1
+     || ==8.8.3
+     || ==8.10.1
   , GHCJS ==8.4
 
 source-repository head
@@ -38,7 +39,7 @@
   default-language: Haskell2010
   hs-source-dirs:   src
   build-depends:
-      base        >=4.3   && <4.14
+      base        >=4.3   && <4.15
     , bifunctors  >=5.5.5 && <5.6
     , tagged      >=0.8.6 && <0.9
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.1/src/Data/Bifunctor/Swap.hs 
new/assoc-1.0.2/src/Data/Bifunctor/Swap.hs
--- old/assoc-1.0.1/src/Data/Bifunctor/Swap.hs  2001-09-09 03:46:40.000000000 
+0200
+++ new/assoc-1.0.2/src/Data/Bifunctor/Swap.hs  2001-09-09 03:46:40.000000000 
+0200
@@ -57,3 +57,18 @@
 
 instance (f ~ g, Functor f, Swap p) => Swap (Biff p f g) where
     swap = Biff . swap . runBiff
+
+instance Swap ((,,) x) where
+    swap (x,a,b) = (x,b,a)
+
+instance Swap ((,,,) x y) where
+    swap (x,y,a,b) = (x,y,b,a)
+
+instance Swap ((,,,,) x y z) where
+    swap (x,y,z,a,b) = (x,y,z,b,a)
+
+instance Swap ((,,,,,) x y z w) where
+    swap (x,y,z,w,a,b) = (x,y,z,w,b,a)
+
+instance Swap ((,,,,,,) x y z w v) where
+    swap (x,y,z,w,v,a,b) = (x,y,z,w,v,b,a)


Reply via email to