Hello community, here is the log from the commit of package ghc-data-default for openSUSE:Factory checked in at 2015-05-21 08:12:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-data-default (Old) and /work/SRC/openSUSE:Factory/.ghc-data-default.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-data-default" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-data-default/ghc-data-default.changes 2014-04-02 17:19:02.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-data-default.new/ghc-data-default.changes 2015-05-21 08:12:51.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Apr 17 08:47:12 UTC 2015 - mimi.vx@gmail.com + +- update to 0.5.3 +* no upstream changelog + +------------------------------------------------------------------- Old: ---- data-default-0.5.0.tar.gz New: ---- data-default-0.5.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-data-default.spec ++++++ --- /var/tmp/diff_new_pack.kIdAHt/_old 2015-05-21 08:12:51.000000000 +0200 +++ /var/tmp/diff_new_pack.kIdAHt/_new 2015-05-21 08:12:51.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-data-default # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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,37 +18,43 @@ %global pkg_name data-default -Name: ghc-data-default -Version: 0.5.0 +Name: ghc-%{pkg_name} +Version: 0.5.3 Release: 0 -Summary: Haskell types with default values +Summary: A class for types with a default value License: BSD-3-Clause Group: System/Libraries +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -Url: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz + BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: -BuildRequires: ghc-containers-devel -BuildRequires: ghc-dlist-devel -BuildRequires: ghc-old-locale-devel +BuildRequires: ghc-data-default-class-devel +BuildRequires: ghc-data-default-instances-base-devel +BuildRequires: ghc-data-default-instances-containers-devel +BuildRequires: ghc-data-default-instances-dlist-devel +BuildRequires: ghc-data-default-instances-old-locale-devel # End cabal-rpm deps %description -A Haskell class for types with a default value +A class for types with a default value. + %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other -Requires: ghc-compiler -Requires(post): ghc-compiler -Requires(postun): ghc-compiler +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name} = %{version}-%{release} %description devel -A Haskell class for types with a default value +This package provides the Haskell %{pkg_name} library development files. + + %prep %setup -q -n %{pkg_name}-%{version} @@ -65,10 +71,10 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root) +%defattr(-,root,root,-) %changelog ++++++ data-default-0.5.0.tar.gz -> data-default-0.5.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data-default-0.5.0/Data/Default.hs new/data-default-0.5.3/Data/Default.hs --- old/data-default-0.5.0/Data/Default.hs 2012-06-18 09:39:22.000000000 +0200 +++ new/data-default-0.5.3/Data/Default.hs 2013-04-03 23:02:07.000000000 +0200 @@ -1,6 +1,6 @@ {- -Copyright (c) 2010, 2012 Lukas Mai +Copyright (c) 2013 Lukas Mai All rights reserved. @@ -36,70 +36,8 @@ Default(..) ) where -import Data.Int -import Data.Word -import Data.Monoid -import Data.Ratio -import Data.Complex -import qualified Data.Set as S -import qualified Data.Map as M -import Data.IntMap (IntMap) -import Data.IntSet (IntSet) -import Data.Sequence (Seq) -import Data.Tree (Tree(..)) -import Data.DList (DList) -import System.Locale - --- | A class for types with a default value. -class Default a where - -- | The default value for this type. - def :: a - -instance Default (S.Set v) where def = S.empty -instance Default (M.Map k v) where def = M.empty -instance Default (IntMap v) where def = mempty -instance Default IntSet where def = mempty -instance Default (Seq a) where def = mempty -instance (Default a) => Default (Tree a) where def = Node def def - -instance Default Int where def = 0 -instance Default Int8 where def = 0 -instance Default Int16 where def = 0 -instance Default Int32 where def = 0 -instance Default Int64 where def = 0 -instance Default Word where def = 0 -instance Default Word8 where def = 0 -instance Default Word16 where def = 0 -instance Default Word32 where def = 0 -instance Default Word64 where def = 0 -instance Default Integer where def = 0 -instance Default Float where def = 0 -instance Default Double where def = 0 -instance (Integral a) => Default (Ratio a) where def = 0 -instance (Default a, RealFloat a) => Default (Complex a) where def = def :+ def - -instance (Default r) => Default (e -> r) where def = const def -instance (Default a) => Default (IO a) where def = return def - -instance Default (Maybe a) where def = Nothing - -instance Default () where def = mempty -instance Default [a] where def = mempty -instance Default Ordering where def = mempty -instance Default Any where def = mempty -instance Default All where def = mempty -instance Default (Last a) where def = mempty -instance Default (First a) where def = mempty -instance (Num a) => Default (Sum a) where def = mempty -instance (Num a) => Default (Product a) where def = mempty -instance Default (Endo a) where def = mempty - -instance Default (DList a) where def = mempty - -instance (Default a) => Default (Dual a) where def = Dual def -instance (Default a, Default b) => Default (a, b) where def = (def, def) -instance (Default a, Default b, Default c) => Default (a, b, c) where def = (def, def, def) -instance (Default a, Default b, Default c, Default d) => Default (a, b, c, d) where def = (def, def, def, def) -instance (Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) where def = (def, def, def, def, def) - -instance Default TimeLocale where def = defaultTimeLocale +import Data.Default.Class +import Data.Default.Instances.Base () +import Data.Default.Instances.Containers () +import Data.Default.Instances.DList () +import Data.Default.Instances.OldLocale () diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data-default-0.5.0/LICENSE new/data-default-0.5.3/LICENSE --- old/data-default-0.5.0/LICENSE 2012-06-18 09:39:22.000000000 +0200 +++ new/data-default-0.5.3/LICENSE 2013-04-03 23:02:07.000000000 +0200 @@ -1,4 +1,4 @@ -Copyright (c) 2010, 2012 Lukas Mai +Copyright (c) 2013 Lukas Mai All rights reserved. @@ -14,13 +14,13 @@ may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY LUKAS MAI AND CONTRIBUTORS "AS IS" AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data-default-0.5.0/data-default.cabal new/data-default-0.5.3/data-default.cabal --- old/data-default-0.5.0/data-default.cabal 2012-06-18 09:39:22.000000000 +0200 +++ new/data-default-0.5.3/data-default.cabal 2013-04-03 23:02:07.000000000 +0200 @@ -1,5 +1,5 @@ Name: data-default -Version: 0.5.0 +Version: 0.5.3 Cabal-Version: >= 1.6 Category: Data Synopsis: A class for types with a default value @@ -14,6 +14,9 @@ location: https://github.com/mauke/data-default Library - Build-Depends: base >=2 && <5, containers, dlist, old-locale + Build-Depends: base >=2 && <5, data-default-class, + data-default-instances-base, + data-default-instances-containers, + data-default-instances-dlist, + data-default-instances-old-locale Exposed-Modules: Data.Default - Ghc-Options: -Wall -O2