Hello community,
here is the log from the commit of package ghc-data-default-instances-base for
openSUSE:Factory checked in at 2016-07-21 08:08:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-data-default-instances-base (Old)
and /work/SRC/openSUSE:Factory/.ghc-data-default-instances-base.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-data-default-instances-base"
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-data-default-instances-base/ghc-data-default-instances-base.changes
2015-05-21 08:15:09.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-data-default-instances-base.new/ghc-data-default-instances-base.changes
2016-07-21 08:08:50.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:29:43 UTC 2016 - [email protected]
+
+- Update to version 0.1.0 revision 0 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
data-default-instances-base-0.0.1.tar.gz
New:
----
data-default-instances-base-0.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-data-default-instances-base.spec ++++++
--- /var/tmp/diff_new_pack.EyNfue/_old 2016-07-21 08:08:51.000000000 +0200
+++ /var/tmp/diff_new_pack.EyNfue/_new 2016-07-21 08:08:51.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-data-default-instances-base
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -15,42 +15,38 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-%global pkg_name data-default-instances-base
+%global pkg_name data-default-instances-base
Name: ghc-%{pkg_name}
-Version: 0.0.1
-Release: 1
+Version: 0.1.0
+Release: 0
Summary: Default instances for types in base
-Group: System/Libraries
-
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
-
BuildRequires: ghc-Cabal-devel
-BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-data-default-class-devel
+BuildRequires: ghc-rpm-macros
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
# End cabal-rpm deps
%description
Default instances for types in base.
-
%package devel
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
+Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
-Requires: %{name} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library
development files.
-
%prep
%setup -q -n %{pkg_name}-%{version}
@@ -66,18 +62,14 @@
%post devel
%ghc_pkg_recache
-
%postun devel
%ghc_pkg_recache
-
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
-
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
-
%changelog
++++++ data-default-instances-base-0.0.1.tar.gz ->
data-default-instances-base-0.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/data-default-instances-base-0.0.1/Data/Default/Instances/Base.hs
new/data-default-instances-base-0.1.0/Data/Default/Instances/Base.hs
--- old/data-default-instances-base-0.0.1/Data/Default/Instances/Base.hs
2013-04-02 21:59:19.000000000 +0200
+++ new/data-default-instances-base-0.1.0/Data/Default/Instances/Base.hs
2016-04-17 23:18:01.000000000 +0200
@@ -29,12 +29,17 @@
-}
+{-# LANGUAGE CPP #-}
+
module Data.Default.Instances.Base (
-- | This module defines 'Default' instances for the types 'Int', 'Int8',
-- 'Int16', 'Int32', 'Int64', 'Word', 'Word8', 'Word16', 'Word32', 'Word64',
--- 'Integer', 'Float', 'Double', 'Ratio', 'Complex', '(->)', 'IO', 'Maybe',
--- '()', '[]', 'Ordering', 'Any', 'All', 'Last', 'First', 'Sum', 'Product',
--- 'Endo', 'Dual', and tuples.
+-- 'Integer', 'Float', 'Double', 'Ratio', 'Complex', 'CShort', 'CUShort',
+-- 'CInt', 'CUInt', 'CLong', 'CULong', 'CLLong', 'CULLong', 'CPtrdiff',
+-- 'CSize', 'CSigAtomic', 'CIntPtr', 'CUIntPtr', 'CIntMax', 'CUIntMax',
+-- 'CClock', 'CTime', 'CUSeconds', 'CSUSeconds', 'CFloat', 'CDouble', '(->)',
+-- 'IO', 'Maybe', '()', '[]', 'Ordering', 'Any', 'All', 'Last', 'First', 'Sum',
+-- 'Product', 'Endo', 'Dual', and tuples.
) where
import Data.Default.Class
@@ -43,6 +48,7 @@
import Data.Monoid
import Data.Ratio
import Data.Complex
+import Foreign.C.Types
instance Default Int where def = 0
instance Default Int8 where def = 0
@@ -60,6 +66,30 @@
instance (Integral a) => Default (Ratio a) where def = 0
instance (Default a, RealFloat a) => Default (Complex a) where def = def :+ def
+instance Default CShort where def = 0
+instance Default CUShort where def = 0
+instance Default CInt where def = 0
+instance Default CUInt where def = 0
+instance Default CLong where def = 0
+instance Default CULong where def = 0
+instance Default CLLong where def = 0
+instance Default CULLong where def = 0
+instance Default CPtrdiff where def = 0
+instance Default CSize where def = 0
+instance Default CSigAtomic where def = 0
+instance Default CIntPtr where def = 0
+instance Default CUIntPtr where def = 0
+instance Default CIntMax where def = 0
+instance Default CUIntMax where def = 0
+instance Default CClock where def = 0
+instance Default CTime where def = 0
+#if MIN_VERSION_base(4, 4, 0)
+instance Default CUSeconds where def = 0
+instance Default CSUSeconds where def = 0
+#endif
+instance Default CFloat where def = 0
+instance Default CDouble where def = 0
+
instance (Default r) => Default (e -> r) where def = const def
instance (Default a) => Default (IO a) where def = return def
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/data-default-instances-base-0.0.1/LICENSE
new/data-default-instances-base-0.1.0/LICENSE
--- old/data-default-instances-base-0.0.1/LICENSE 2013-04-02
21:59:19.000000000 +0200
+++ new/data-default-instances-base-0.1.0/LICENSE 2016-04-17
23:18:01.000000000 +0200
@@ -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-instances-base-0.0.1/data-default-instances-base.cabal
new/data-default-instances-base-0.1.0/data-default-instances-base.cabal
--- old/data-default-instances-base-0.0.1/data-default-instances-base.cabal
2013-04-02 21:59:19.000000000 +0200
+++ new/data-default-instances-base-0.1.0/data-default-instances-base.cabal
2016-04-17 23:18:01.000000000 +0200
@@ -1,5 +1,5 @@
Name: data-default-instances-base
-Version: 0.0.1
+Version: 0.1.0
Cabal-Version: >= 1.6
Category: Data
Synopsis: Default instances for types in base