commit ghc-scientific for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2020-08-28 21:37:51

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new.3399 (New)


Package is "ghc-scientific"

Fri Aug 28 21:37:51 2020 rev:23 rq:829410 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2020-06-19 17:17:46.094946958 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new.3399/ghc-scientific.changes  
2020-08-28 21:37:51.724794411 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:45:57 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.f97sYB/_old  2020-08-28 21:37:52.220794645 +0200
+++ /var/tmp/diff_new_pack.f97sYB/_new  2020-08-28 21:37:52.224794647 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -86,7 +86,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-scientific for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2020-06-19 17:17:45

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new.3606 (New)


Package is "ghc-scientific"

Fri Jun 19 17:17:45 2020 rev:22 rq:815168 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2019-12-27 13:57:14.228770463 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new.3606/ghc-scientific.changes  
2020-06-19 17:17:46.094946958 +0200
@@ -1,0 +2,5 @@
+Tue Jun 16 11:14:34 UTC 2020 - Peter Simons 
+
+- Re-generate file with latest version of spec-cleaner.
+
+---



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.OnBqPB/_old  2020-06-19 17:17:47.274950301 +0200
+++ /var/tmp/diff_new_pack.OnBqPB/_new  2020-06-19 17:17:47.278950312 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




commit ghc-scientific for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2019-12-27 13:57:10

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new.6675 (New)


Package is "ghc-scientific"

Fri Dec 27 13:57:10 2019 rev:21 rq:759501 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2018-10-25 09:03:52.838595047 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new.6675/ghc-scientific.changes  
2019-12-27 13:57:14.228770463 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:14:40 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.CH4zNb/_old  2019-12-27 13:57:15.660771155 +0100
+++ /var/tmp/diff_new_pack.CH4zNb/_new  2019-12-27 13:57:15.660771155 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -23,7 +23,6 @@
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
-Group:  Development/Libraries/Haskell
 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
@@ -78,7 +77,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-scientific for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2018-10-25 09:03:51

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Thu Oct 25 09:03:51 2018 rev:20 rq:643453 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2018-07-21 10:23:07.578987827 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2018-10-25 09:03:52.838595047 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:31:58 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.SyNT35/_old  2018-10-25 09:03:53.782594469 +0200
+++ /var/tmp/diff_new_pack.SyNT35/_new  2018-10-25 09:03:53.786594466 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 




commit ghc-scientific for openSUSE:Factory

2018-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2018-07-21 10:23:04

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Sat Jul 21 10:23:04 2018 rev:19 rq:623850 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2018-05-30 12:27:07.338660845 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2018-07-21 10:23:07.578987827 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:40 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -176 +181,0 @@
-



Other differences:
--



commit ghc-scientific for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2018-05-30 12:13:00

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Wed May 30 12:13:00 2018 rev:18 rq:607878 version:0.3.6.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-07-27 11:12:10.989988799 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2018-05-30 12:27:07.338660845 +0200
@@ -1,0 +2,51 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update scientific to version 0.3.6.2.
+  * Due to a regression introduced in 0.3.4.14 the RealFrac methods
+and floatingOrInteger became vulnerable to a space blowup when
+applied to scientifics with huge exponents. This has now been
+fixed again.
+
+  * Fix build on GHC < 8.
+
+  * Make the methods of the Hashable, Eq and Ord instances safe to
+  use when applied to scientific numbers coming from untrusted
+  sources. Previously these methods first converted their arguments
+  to Rational before applying the operation. This is unsafe because
+  converting a Scientific to a Rational could fill up all space and
+  crash your program when the Scientific has a huge base10Exponent.
+
+  Do note that the hash computation of the Hashable Scientific
+  instance has been changed because of this improvement!
+
+  Thanks to Tom Sydney Kerckhove (@NorfairKing) for pushing me to
+  fix this.
+
+  * fromRational :: Rational -> Scientific now throws an error
+  instead of diverging when applied to a repeating decimal. This
+  does mean it will consume space linear in the number of digits of
+  the resulting scientific. This makes "fromRational" and the other
+  Fractional methods "recip" and "/" a bit safer to use.
+
+  * To get the old unsafe but more efficient behaviour the following
+  function was added: unsafeFromRational :: Rational -> Scientific.
+
+  * Add alternatives for fromRationalRepetend:
+
+fromRationalRepetendLimited
+:: Int -- ^ limit
+-> Rational
+-> Either (Scientific, Rational)
+(Scientific, Maybe Int)
+
+and:
+
+fromRationalRepetendUnlimited
+:: Rational -> (Scientific, Maybe Int)
+
+Thanks to Ian Jeffries (@seagreen) for the idea.
+
+  * Dropped upper version bounds of dependencies
+because it's to much work to maintain.
+
+---

Old:

  scientific-0.3.5.1.tar.gz

New:

  scientific-0.3.6.2.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.22Ehxm/_old  2018-05-30 12:27:08.882607507 +0200
+++ /var/tmp/diff_new_pack.22Ehxm/_new  2018-05-30 12:27:08.886607369 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -19,12 +19,12 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.5.1
+Version:0.3.6.2
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+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-binary-devel
@@ -36,7 +36,6 @@
 BuildRequires:  ghc-primitive-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-smallcheck-devel
@@ -48,7 +47,7 @@
 %endif
 
 %description
-'Data.Scientific' provides the number type 'Scientific'. Scientific numbers are
+"Data.Scientific" provides the number type 'Scientific'. Scientific numbers are
 arbitrary precision and space efficient. They are represented using
 .
 The implementation uses a coefficient 'c :: 'Integer'' and a base-10 exponent
@@ -71,7 +70,7 @@
 '1e10 :: 'Rational'' will fill up all space and crash your program.
 Scientific works as expected:
 
-> > read "1e10" :: Scientific > 1.0e10
+>>> read "1e10" :: Scientific 

commit ghc-scientific for openSUSE:Factory

2017-07-27 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-07-27 11:12:09

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Thu Jul 27 11:12:09 2017 rev:17 rq:511518 version:0.3.5.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-07-12 19:35:29.820662404 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-07-27 11:12:10.989988799 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:20 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.5.1.
+
+---

Old:

  scientific-0.3.4.15.tar.gz
  scientific.cabal

New:

  scientific-0.3.5.1.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.BASXgW/_old  2017-07-27 11:12:12.077835133 +0200
+++ /var/tmp/diff_new_pack.BASXgW/_new  2017-07-27 11:12:12.077835133 +0200
@@ -19,14 +19,13 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.15
+Version:0.3.5.1
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
 Group:  Development/Languages/Other
 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/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
@@ -34,9 +33,9 @@
 BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-integer-logarithms-devel
+BuildRequires:  ghc-primitive-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
-BuildRequires:  ghc-vector-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
@@ -91,7 +90,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ scientific-0.3.4.15.tar.gz -> scientific-0.3.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.15/changelog 
new/scientific-0.3.5.1/changelog
--- old/scientific-0.3.4.15/changelog   2017-06-04 22:37:46.0 +0200
+++ new/scientific-0.3.5.1/changelog2017-07-08 00:06:03.0 +0200
@@ -1,3 +1,10 @@
+0.3.5.1
+   * Replace use of Vector from vector with Array from primitive.
+
+0.3.5.0
+   * Export scientificP :: ReadP Scientific
+ (Courtesy of Shlok Datye @shlok)
+
 0.3.4.15
* Fix build for base < 4.8.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.15/scientific.cabal 
new/scientific-0.3.5.1/scientific.cabal
--- old/scientific-0.3.4.15/scientific.cabal2017-06-04 22:37:46.0 
+0200
+++ new/scientific-0.3.5.1/scientific.cabal 2017-07-08 00:06:03.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.15
+version: 0.3.5.1
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -72,7 +72,7 @@
  , deepseq >= 1.3   && < 1.5
  , text>= 0.8   && < 1.3
  , hashable>= 1.1.2 && < 1.3
- , vector  >= 0.7   && < 0.13
+ , primitive   >= 0.1   && < 0.7
  , containers  >= 0.1   && < 0.6
  , binary  >= 0.4.1 && < 0.9
 
@@ -104,9 +104,9 @@
, tasty-ant-xml>= 1.0   && < 1.2
, tasty-hunit  >= 0.8   && < 0.10
, tasty-smallcheck >= 0.2   && < 0.9
-   , tasty-quickcheck >= 0.8   && < 0.9
+   , tasty-quickcheck >= 0.8   && < 0.10
, smallcheck   >= 1.0   && < 1.2
-   , QuickCheck   >= 2.5   && < 2.10
+   , QuickCheck   >= 2.5   && < 2.11
, text >= 0.8   && < 1.3
 
   if flag(bytestring-builder)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.15/src/Data/Scientific.hs 
new/scientific-0.3.5.1/src/Data/Scientific.hs
--- old/scientific-0.3.4.15/src/Data/Scientific.hs  2017-06-04 
22:37:46.0 +0200
+++ 

commit ghc-scientific for openSUSE:Factory

2017-07-12 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-07-12 19:35:28

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Wed Jul 12 19:35:28 2017 rev:16 rq:509318 version:0.3.4.15

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-06-21 13:55:53.574362033 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-07-12 19:35:29.820662404 +0200
@@ -1,0 +2,5 @@
+Mon Jul  3 03:01:36 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.15 revision 2.
+
+---

New:

  scientific.cabal



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.z7sceP/_old  2017-07-12 19:35:30.416578225 +0200
+++ /var/tmp/diff_new_pack.z7sceP/_new  2017-07-12 19:35:30.420577660 +0200
@@ -26,6 +26,7 @@
 Group:  Development/Languages/Other
 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/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
@@ -90,6 +91,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ scientific.cabal ++
name:scientific
version: 0.3.4.15
x-revision: 2
synopsis:Numbers represented using scientific notation
description:
  @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
  arbitrary precision and space efficient. They are represented using
  .
  The implementation uses a coefficient @c :: 'Integer'@ and a base-10 exponent
  @e :: 'Int'@. A scientific number corresponds to the
  'Fractional' number: @'fromInteger' c * 10 '^^' e@.
  .
  Note that since we're using an 'Int' to represent the exponent these numbers
  aren't truly arbitrary precision. I intend to change the type of the exponent
  to 'Integer' in a future release.
  .
  The main application of 'Scientific' is to be used as the target of parsing
  arbitrary precision numbers coming from an untrusted source. The advantages
  over using 'Rational' for this are that:
  .
  * A 'Scientific' is more efficient to construct. Rational numbers need to be
  constructed using '%' which has to compute the 'gcd' of the 'numerator' and
  'denominator'.
  .
  * 'Scientific' is safe against numbers with huge exponents. For example:
  @1e10 :: 'Rational'@ will fill up all space and crash your
  program. Scientific works as expected:
  .
   > > read "1e10" :: Scientific
   > 1.0e10
  .
  * Also, the space usage of converting scientific numbers with huge exponents 
to
  @'Integral's@ (like: 'Int') or @'RealFloat's@ (like: 'Double' or 'Float')
  will always be bounded by the target type.

homepage:https://github.com/basvandijk/scientific
bug-reports: https://github.com/basvandijk/scientific/issues
license: BSD3
license-file:LICENSE
author:  Bas van Dijk
maintainer:  Bas van Dijk 
category:Data
build-type:  Simple
cabal-version:   >=1.10

extra-source-files:
  changelog

source-repository head
  type: git
  location: git://github.com/basvandijk/scientific.git

flag bytestring-builder
  description: Depend on the bytestring-builder package for backwards 
compatibility.
  default: False
  manual:  False

flag integer-simple
  description: Use the integer-simple package instead of integer-gmp
  default: False

library
  exposed-modules: Data.ByteString.Builder.Scientific
   Data.Scientific
   Data.Text.Lazy.Builder.Scientific
  other-modules:   GHC.Integer.Compat
   Utils
  other-extensions:DeriveDataTypeable, BangPatterns
  ghc-options: -Wall
  build-depends:   base>= 4.3   && < 4.11
 , ghc-prim
 , integer-logarithms >= 1 && <1.1
 , deepseq >= 1.3   && < 1.5
 , text>= 0.8   && < 1.3
 , hashable>= 1.1.2 && < 1.3
 , vector  >= 0.7   && < 0.13
 , containers  >= 0.1   && < 0.6
 , binary  >= 0.4.1 && < 0.9


commit ghc-scientific for openSUSE:Factory

2017-06-21 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-06-21 13:55:53

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Wed Jun 21 13:55:53 2017 rev:15 rq:504677 version:0.3.4.15

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-05-06 18:29:02.320415313 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-06-21 13:55:53.574362033 +0200
@@ -1,0 +2,10 @@
+Mon Jun 12 09:41:44 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.15.
+
+---
+Wed May 31 14:01:07 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.13.
+
+---

Old:

  scientific-0.3.4.12.tar.gz

New:

  scientific-0.3.4.15.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.LudrUV/_old  2017-06-21 13:55:54.302259357 +0200
+++ /var/tmp/diff_new_pack.LudrUV/_new  2017-06-21 13:55:54.310258229 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.12
+Version:0.3.4.15
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.12.tar.gz -> scientific-0.3.4.15.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.12/bench/bench.hs 
new/scientific-0.3.4.15/bench/bench.hs
--- old/scientific-0.3.4.12/bench/bench.hs  2017-04-11 16:40:48.0 
+0200
+++ new/scientific-0.3.4.15/bench/bench.hs  2017-06-04 22:37:46.0 
+0200
@@ -1,16 +1,20 @@
 module Main where
 
 import Criterion.Main
+import Data.Int
+import Data.Word
 import Data.Scientific
 
 main :: IO ()
 main = defaultMain
[ bgroup "realToFrac"
  [ bgroup "Scientific->Double"
-   [ sToD "pos"pos
-   , sToD "neg"neg
-   , sToD "int"int
-   , sToD "negInt" negInt
+   [ sToD "dangerouslyBig"   dangerouslyBig
+   , sToD "dangerouslySmall" dangerouslySmall
+   , sToD "pos"  pos
+   , sToD "neg"  neg
+   , sToD "int"  int
+   , sToD "negInt"   negInt
]
  , bgroup "Double->Scientific"
[ dToS "pos"pos
@@ -40,6 +44,19 @@
, bgroup "toDecimalDigits"
  [ bench "big" (nf toDecimalDigits $! big)
  ]
+
+   , bgroup "fromFloatDigits"
+ [ bench "pos"$ nf (fromFloatDigits :: Double -> Scientific) pos
+ , bench "neg"$ nf (fromFloatDigits :: Double -> Scientific) neg
+ , bench "int"$ nf (fromFloatDigits :: Double -> Scientific) int
+ , bench "negInt" $ nf (fromFloatDigits :: Double -> Scientific) negInt
+ ]
+
+   , bgroup "toBoundedInteger"
+ [ bgroup "0"  $ benchToBoundedInteger 0
+ , bgroup "dangerouslyBig" $ benchToBoundedInteger dangerouslyBig
+ , bgroup "64" $ benchToBoundedInteger 64
+ ]
]
 where
   pos :: Fractional a => a
@@ -57,6 +74,12 @@
   big :: Scientific
   big = read $ "0." ++ concat (replicate 20 "0123456789")
 
+  dangerouslyBig :: Scientific
+  dangerouslyBig = read "1e500"
+
+  dangerouslySmall :: Scientific
+  dangerouslySmall = read "1e-500"
+
 realToFracStoD :: Scientific -> Double
 realToFracStoD = fromRational . toRational
 {-# INLINE realToFracStoD #-}
@@ -65,11 +88,10 @@
 realToFracDtoS = fromRational . toRational
 {-# INLINE realToFracDtoS #-}
 
-
 sToD :: String -> Scientific -> Benchmark
 sToD name f = bgroup name
-  [ bench "fromScientific" . nf (realToFrac :: Scientific -> 
Double) $! f
-  , bench "via Rational"   . nf (realToFracStoD :: Scientific -> 
Double) $! f
+  [ bench "toRealFloat"  . nf (realToFrac :: Scientific -> 
Double) $! f
+  , bench "via Rational" . nf (realToFracStoD :: Scientific -> 
Double) $! f
   ]
 
 dToS :: String -> Double -> Benchmark
@@ -101,3 +123,17 @@
   1  -> m
   _  -> error "round default defn: Bad value"
 {-# INLINE roundDefault #-}
+
+benchToBoundedInteger :: Scientific -> [Benchmark]
+benchToBoundedInteger s =
+[ bench "Int"$ nf (toBoundedInteger :: Scientific -> Maybe Int)s
+, bench "Int8"   $ nf (toBoundedInteger :: Scientific -> Maybe Int8)   s
+, bench "Int16"  $ 

commit ghc-scientific for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-05-06 18:29:00

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Sat May  6 18:29:00 2017 rev:14 rq:491508 version:0.3.4.12

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-04-14 13:41:29.703388352 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-05-06 18:29:02.320415313 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 13:31:57 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.12 with cabal2obs.
+
+---

Old:

  scientific-0.3.4.11.tar.gz

New:

  scientific-0.3.4.12.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.cOAOGh/_old  2017-05-06 18:29:03.068309781 +0200
+++ /var/tmp/diff_new_pack.cOAOGh/_new  2017-05-06 18:29:03.072309218 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.11
+Version:0.3.4.12
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.11.tar.gz -> scientific-0.3.4.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.11/changelog 
new/scientific-0.3.4.12/changelog
--- old/scientific-0.3.4.11/changelog   2017-03-27 10:47:28.0 +0200
+++ new/scientific-0.3.4.12/changelog   2017-04-11 16:40:48.0 +0200
@@ -1,3 +1,6 @@
+0.3.4.12
+   * Support base-4.10
+
 0.3.4.11
* Support tasty-ant-xml-1.1.0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.11/scientific.cabal 
new/scientific-0.3.4.12/scientific.cabal
--- old/scientific-0.3.4.11/scientific.cabal2017-03-27 10:47:28.0 
+0200
+++ new/scientific-0.3.4.12/scientific.cabal2017-04-11 16:40:48.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.11
+version: 0.3.4.12
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -66,7 +66,7 @@
Utils
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
-  build-depends:   base>= 4.3   && < 4.10
+  build-depends:   base>= 4.3   && < 4.11
  , ghc-prim
  , integer-logarithms >= 1 && <1.1
  , deepseq >= 1.3   && < 1.5
@@ -98,7 +98,7 @@
   ghc-options:  -Wall
 
   build-depends: scientific
-   , base >= 4.3   && < 4.10
+   , base >= 4.3   && < 4.11
, binary   >= 0.4.1 && < 0.9
, tasty>= 0.5   && < 0.12
, tasty-ant-xml>= 1.0   && < 1.2
@@ -122,5 +122,5 @@
   default-language: Haskell2010
   ghc-options:  -O2
   build-depends:scientific
-  , base>= 4.3   && < 4.10
+  , base>= 4.3   && < 4.11
   , criterion   >= 0.5   && < 1.2




commit ghc-scientific for openSUSE:Factory

2017-04-14 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-04-14 13:41:28

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Fri Apr 14 13:41:28 2017 rev:13 rq:487388 version:0.3.4.11

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2017-03-20 17:06:34.231220739 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-04-14 13:41:29.703388352 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 11:04:06 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.11 with cabal2obs.
+
+---

Old:

  scientific-0.3.4.10.tar.gz

New:

  scientific-0.3.4.11.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.Z7Bv31/_old  2017-04-14 13:41:31.051197862 +0200
+++ /var/tmp/diff_new_pack.Z7Bv31/_new  2017-04-14 13:41:31.059196731 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.10
+Version:0.3.4.11
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.10.tar.gz -> scientific-0.3.4.11.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.10/changelog 
new/scientific-0.3.4.11/changelog
--- old/scientific-0.3.4.10/changelog   2017-01-02 23:32:26.0 +0100
+++ new/scientific-0.3.4.11/changelog   2017-03-27 10:47:28.0 +0200
@@ -1,3 +1,6 @@
+0.3.4.11
+   * Support tasty-ant-xml-1.1.0
+
 0.3.4.10
* Tighten lower bound on vector from 0.5 to 0.7 because building with
  vector < 0.7 results in a build error.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.10/scientific.cabal 
new/scientific-0.3.4.11/scientific.cabal
--- old/scientific-0.3.4.10/scientific.cabal2017-01-02 23:32:26.0 
+0100
+++ new/scientific-0.3.4.11/scientific.cabal2017-03-27 10:47:28.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.10
+version: 0.3.4.11
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -84,7 +84,6 @@
 
   if flag(integer-simple)
   build-depends: integer-simple
-  CPP-options: -DINTEGER_SIMPLE
   else
   build-depends: integer-gmp
 
@@ -102,7 +101,7 @@
, base >= 4.3   && < 4.10
, binary   >= 0.4.1 && < 0.9
, tasty>= 0.5   && < 0.12
-   , tasty-ant-xml>= 1.0   && < 1.1
+   , tasty-ant-xml>= 1.0   && < 1.2
, tasty-hunit  >= 0.8   && < 0.10
, tasty-smallcheck >= 0.2   && < 0.9
, tasty-quickcheck >= 0.8   && < 0.9




commit ghc-scientific for openSUSE:Factory

2017-03-20 Thread root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2017-03-20 17:06:33

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Mon Mar 20 17:06:33 2017 rev:12 rq:461680 version:0.3.4.10

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2016-08-24 10:08:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2017-03-20 17:06:34.231220739 +0100
@@ -1,0 +2,10 @@
+Sun Feb 12 14:14:50 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.10 with cabal2obs.
+
+---
+Wed Jan  4 21:22:15 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.9 revision 1 with cabal2obs.
+
+---

Old:

  scientific-0.3.4.9.tar.gz

New:

  scientific-0.3.4.10.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.z5WRqL/_old  2017-03-20 17:06:34.883128690 +0100
+++ /var/tmp/diff_new_pack.z5WRqL/_new  2017-03-20 17:06:34.883128690 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -19,11 +19,11 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.9
+Version:0.3.4.10
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 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
@@ -32,6 +32,7 @@
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-hashable-devel
+BuildRequires:  ghc-integer-logarithms-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-vector-devel
@@ -90,19 +91,15 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %cabal_test
 
-
 %post devel
 %ghc_pkg_recache
 

++ scientific-0.3.4.9.tar.gz -> scientific-0.3.4.10.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.9/changelog 
new/scientific-0.3.4.10/changelog
--- old/scientific-0.3.4.9/changelog2016-07-11 23:25:34.0 +0200
+++ new/scientific-0.3.4.10/changelog   2017-01-02 23:32:26.0 +0100
@@ -1,3 +1,11 @@
+0.3.4.10
+   * Tighten lower bound on vector from 0.5 to 0.7 because building with
+ vector < 0.7 results in a build error.
+
+   * Move the internal modules Math.NumberTheory.Logarithms and
+ GHC.Integer.Logarithms.Compat to their own package integer-logarithms 
so
+ other people can share that code.
+
 0.3.4.9
* Support QuickCheck-2.9.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.9/scientific.cabal 
new/scientific-0.3.4.10/scientific.cabal
--- old/scientific-0.3.4.9/scientific.cabal 2016-07-11 23:25:34.0 
+0200
+++ new/scientific-0.3.4.10/scientific.cabal2017-01-02 23:32:26.0 
+0100
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.9
+version: 0.3.4.10
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -62,18 +62,17 @@
   exposed-modules: Data.ByteString.Builder.Scientific
Data.Scientific
Data.Text.Lazy.Builder.Scientific
-  other-modules:   Math.NumberTheory.Logarithms
-   GHC.Integer.Logarithms.Compat
-   GHC.Integer.Compat
+  other-modules:   GHC.Integer.Compat
Utils
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
   build-depends:   base>= 4.3   && < 4.10
  , ghc-prim
+ , integer-logarithms >= 1 && <1.1
  , deepseq >= 1.3   && < 1.5
  , text>= 0.8   && < 1.3
  , hashable>= 1.1.2 && 

commit ghc-scientific for openSUSE:Factory

2016-08-24 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2016-08-24 10:07:58

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2016-07-21 08:05:29.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2016-08-24 10:08:02.0 +0200
@@ -1,0 +2,5 @@
+Fri Jul 22 06:03:20 UTC 2016 - psim...@suse.com
+
+- Update to version 0.3.4.9 revision 0 with cabal2obs.
+
+---

Old:

  scientific-0.3.4.8.tar.gz

New:

  scientific-0.3.4.9.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.Gvl1UU/_old  2016-08-24 10:08:04.0 +0200
+++ /var/tmp/diff_new_pack.Gvl1UU/_new  2016-08-24 10:08:04.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.8
+Version:0.3.4.9
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
@@ -27,7 +27,6 @@
 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
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
@@ -46,7 +45,6 @@
 BuildRequires:  ghc-tasty-quickcheck-devel
 BuildRequires:  ghc-tasty-smallcheck-devel
 %endif
-# End cabal-rpm deps
 
 %description
 'Data.Scientific' provides the number type 'Scientific'. Scientific numbers are
@@ -102,9 +100,7 @@
 
 
 %check
-%if %{with tests}
-%{cabal} test
-%endif
+%cabal_test
 
 
 %post devel

++ scientific-0.3.4.8.tar.gz -> scientific-0.3.4.9.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.8/changelog 
new/scientific-0.3.4.9/changelog
--- old/scientific-0.3.4.8/changelog2016-07-02 09:14:12.0 +0200
+++ new/scientific-0.3.4.9/changelog2016-07-11 23:25:34.0 +0200
@@ -1,3 +1,6 @@
+0.3.4.9
+   * Support QuickCheck-2.9.
+
 0.3.4.8
* Make bytestring-builder's installation conditional based on a Cabal 
flag.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.8/scientific.cabal 
new/scientific-0.3.4.9/scientific.cabal
--- old/scientific-0.3.4.8/scientific.cabal 2016-07-02 09:14:12.0 
+0200
+++ new/scientific-0.3.4.9/scientific.cabal 2016-07-11 23:25:34.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.8
+version: 0.3.4.9
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -108,7 +108,7 @@
, tasty-smallcheck >= 0.2   && < 0.9
, tasty-quickcheck >= 0.8   && < 0.9
, smallcheck   >= 1.0   && < 1.2
-   , QuickCheck   >= 2.5   && < 2.9
+   , QuickCheck   >= 2.5   && < 2.10
, text >= 0.8   && < 1.3
 
   if flag(bytestring-builder)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.8/test/test.hs 
new/scientific-0.3.4.9/test/test.hs
--- old/scientific-0.3.4.8/test/test.hs 2016-07-02 09:14:12.0 +0200
+++ new/scientific-0.3.4.9/test/test.hs 2016-07-11 23:25:34.0 +0200
@@ -252,7 +252,7 @@
   ]
 
 toBoundedIntegerConversion
-:: forall i. (Integral i, Bounded i, Show i)
+:: forall i. (Integral i, Bounded i)
 => i -> Scientific -> Bool
 toBoundedIntegerConversion _ s =
 case toBoundedInteger s :: Maybe i of




commit ghc-scientific for openSUSE:Factory

2016-07-21 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2016-07-21 08:05:24

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2016-07-05 09:52:54.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2016-07-21 08:05:29.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 16:58:33 UTC 2016 - psim...@suse.com
+
+- Update to version 0.3.4.8 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.HxDMuV/_old  2016-07-21 08:05:30.0 +0200
+++ /var/tmp/diff_new_pack.HxDMuV/_new  2016-07-21 08:05:30.0 +0200
@@ -17,66 +17,108 @@
 
 
 %global pkg_name scientific
-
-Name:   ghc-scientific
+%bcond_with tests
+Name:   ghc-%{pkg_name}
 Version:0.3.4.8
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
 Group:  System/Libraries
-
-Url:http://hackage.haskell.org/package/%{pkg_name}
-Source0:
http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
-BuildRequires:  fdupes
+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
+# Begin cabal-rpm deps:
+BuildRequires:  ghc-binary-devel
+BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-vector-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+%if %{with tests}
+BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-smallcheck-devel
+BuildRequires:  ghc-tasty-ant-xml-devel
+BuildRequires:  ghc-tasty-devel
+BuildRequires:  ghc-tasty-hunit-devel
+BuildRequires:  ghc-tasty-quickcheck-devel
+BuildRequires:  ghc-tasty-smallcheck-devel
+%endif
+# End cabal-rpm deps
 
 %description
-Data.Scientific provides a space efficient and arbitrary precision scientific
-number type.
-
-This package provides the Haskell %{pkg_name} libraries.
+'Data.Scientific' provides the number type 'Scientific'. Scientific numbers are
+arbitrary precision and space efficient. They are represented using
+.
+The implementation uses a coefficient 'c :: 'Integer'' and a base-10 exponent
+'e :: 'Int''. A scientific number corresponds to the 'Fractional' number:
+''fromInteger' c * 10 '^^' e'.
+
+Note that since we're using an 'Int' to represent the exponent these numbers
+aren't truly arbitrary precision. I intend to change the type of the exponent
+to 'Integer' in a future release.
+
+The main application of 'Scientific' is to be used as the target of parsing
+arbitrary precision numbers coming from an untrusted source. The advantages
+over using 'Rational' for this are that:
+
+* A 'Scientific' is more efficient to construct. Rational numbers need to be
+constructed using '%' which has to compute the 'gcd' of the 'numerator' and
+'denominator'.
+
+* 'Scientific' is safe against numbers with huge exponents. For example:
+'1e10 :: 'Rational'' will fill up all space and crash your program.
+Scientific works as expected:
+
+> > read "1e10" :: Scientific > 1.0e10
+
+* Also, the space usage of converting scientific numbers with huge exponents to
+''Integral's' (like: 'Int') or ''RealFloat's' (like: 'Double' or 'Float') will
+always be bounded by the target type.
 
-%package  -n ghc-%{pkg_name}-devel
+%package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
-Provides:   %{name}-static = %{version}-%{release}
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
 
-%description  -n ghc-%{pkg_name}-devel
-Data.Scientific provides a space efficient and arbitrary precision scientific
-number type.
-
+%description devel
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
+
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
-%post -n 

commit ghc-scientific for openSUSE:Factory

2016-07-05 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2016-07-05 09:52:38

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2016-06-14 23:08:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2016-07-05 09:52:54.0 +0200
@@ -1,0 +2,11 @@
+Sun Jul  3 12:33:17 UTC 2016 - mimi...@gmail.com
+
+- update to 0.3.4.8
+* Make bytestring-builder's installation conditional based on a Cabal flag.
+
+---
+Fri Jul  1 17:02:22 UTC 2016 - toddrme2...@gmail.com
+
+- Make Group tag consistent with other GHC packages.
+
+---

Old:

  scientific-0.3.4.7.tar.gz

New:

  scientific-0.3.4.8.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.P9T8pc/_old  2016-07-05 09:52:55.0 +0200
+++ /var/tmp/diff_new_pack.P9T8pc/_new  2016-07-05 09:52:55.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-scientific
 #
-# 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
@@ -19,11 +19,11 @@
 %global pkg_name scientific
 
 Name:   ghc-scientific
-Version:0.3.4.7
+Version:0.3.4.8
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
-Group:  System/Libraries/Other
+Group:  System/Libraries
 
 Url:http://hackage.haskell.org/package/%{pkg_name}
 Source0:
http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz

++ scientific-0.3.4.7.tar.gz -> scientific-0.3.4.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.7/changelog 
new/scientific-0.3.4.8/changelog
--- old/scientific-0.3.4.7/changelog2016-06-11 13:45:37.0 +0200
+++ new/scientific-0.3.4.8/changelog2016-07-02 09:14:12.0 +0200
@@ -1,3 +1,6 @@
+0.3.4.8
+   * Make bytestring-builder's installation conditional based on a Cabal 
flag.
+
 0.3.4.7
* Unconditionally export Data.ByteString.Builder.Scientific.
  The bytestring-builder cabal flag has been removed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.7/scientific.cabal 
new/scientific-0.3.4.8/scientific.cabal
--- old/scientific-0.3.4.7/scientific.cabal 2016-06-11 13:45:37.0 
+0200
+++ new/scientific-0.3.4.8/scientific.cabal 2016-07-02 09:14:12.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.7
+version: 0.3.4.8
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -49,6 +49,11 @@
   type: git
   location: git://github.com/basvandijk/scientific.git
 
+flag bytestring-builder
+  description: Depend on the bytestring-builder package for backwards 
compatibility.
+  default: False
+  manual:  False
+
 flag integer-simple
   description: Use the integer-simple package instead of integer-gmp
   default: False
@@ -64,7 +69,6 @@
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
   build-depends:   base>= 4.3   && < 4.10
- , bytestring  >= 0.9&& < 0.11
  , ghc-prim
  , deepseq >= 1.3   && < 1.5
  , text>= 0.8   && < 1.3
@@ -73,8 +77,11 @@
  , containers  >= 0.1   && < 0.6
  , binary  >= 0.4.1 && < 0.9
 
-  if !impl(ghc >= 7.8)
-  build-depends: bytestring-builder >= 0.10.4 && < 0.11
+  if flag(bytestring-builder)
+  build-depends: bytestring >= 0.9&& < 0.10.4
+   , bytestring-builder >= 0.10.4 && < 0.11
+  else
+  build-depends: bytestring >= 0.10.4 && < 0.11
 
   if flag(integer-simple)
   build-depends: integer-simple
@@ -94,7 +101,6 @@
 
   build-depends: scientific
, base >= 4.3   && < 4.10
-   , bytestring   >= 0.9   && < 0.11
, binary   >= 0.4.1 && < 0.9
, 

commit ghc-scientific for openSUSE:Factory

2016-06-14 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2016-06-14 23:08:39

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2016-03-16 10:36:11.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2016-06-14 23:08:40.0 +0200
@@ -1,0 +2,8 @@
+Sun Jun 12 12:00:17 UTC 2016 - mimi...@gmail.com
+
+- update to 0.3.4.7
+* Unconditionally export Data.ByteString.Builder.Scientific.
+* The bytestring-builder cabal flag has been removed.
+* Depend on bytestring-builder for backwards compatibility for GHC < 7.8.
+
+---

Old:

  scientific-0.3.4.6.tar.gz

New:

  scientific-0.3.4.7.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.BuWKWL/_old  2016-06-14 23:08:41.0 +0200
+++ /var/tmp/diff_new_pack.BuWKWL/_new  2016-06-14 23:08:41.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 
 Name:   ghc-scientific
-Version:0.3.4.6
+Version:0.3.4.7
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.6.tar.gz -> scientific-0.3.4.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.6/changelog 
new/scientific-0.3.4.7/changelog
--- old/scientific-0.3.4.6/changelog2016-03-10 13:09:06.0 +0100
+++ new/scientific-0.3.4.7/changelog2016-06-11 13:45:37.0 +0200
@@ -1,3 +1,8 @@
+0.3.4.7
+   * Unconditionally export Data.ByteString.Builder.Scientific.
+ The bytestring-builder cabal flag has been removed.
+ Depend on bytestring-builder for backwards compatibility for GHC < 
7.8.
+
 0.3.4.6
* Made toDecimalDigits more similar to floatToDigits
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.6/scientific.cabal 
new/scientific-0.3.4.7/scientific.cabal
--- old/scientific-0.3.4.6/scientific.cabal 2016-03-10 13:09:06.0 
+0100
+++ new/scientific-0.3.4.7/scientific.cabal 2016-06-11 13:45:37.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.6
+version: 0.3.4.7
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -49,18 +49,13 @@
   type: git
   location: git://github.com/basvandijk/scientific.git
 
-flag bytestring-builder
-  description: Provide the Data.ByteString.Builder.Scientific module
-   (requires bytestring >= 0.10)
-  default: True
-  manual:  True
-
 flag integer-simple
   description: Use the integer-simple package instead of integer-gmp
   default: False
 
 library
-  exposed-modules: Data.Scientific
+  exposed-modules: Data.ByteString.Builder.Scientific
+   Data.Scientific
Data.Text.Lazy.Builder.Scientific
   other-modules:   Math.NumberTheory.Logarithms
GHC.Integer.Logarithms.Compat
@@ -69,6 +64,7 @@
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
   build-depends:   base>= 4.3   && < 4.10
+ , bytestring  >= 0.9&& < 0.11
  , ghc-prim
  , deepseq >= 1.3   && < 1.5
  , text>= 0.8   && < 1.3
@@ -77,6 +73,9 @@
  , containers  >= 0.1   && < 0.6
  , binary  >= 0.4.1 && < 0.9
 
+  if !impl(ghc >= 7.8)
+  build-depends: bytestring-builder >= 0.10.4 && < 0.11
+
   if flag(integer-simple)
   build-depends: integer-simple
   CPP-options: -DINTEGER_SIMPLE
@@ -86,10 +85,6 @@
   hs-source-dirs:  src
   default-language:Haskell2010
 
-  if flag(bytestring-builder)
-exposed-modules:   Data.ByteString.Builder.Scientific
-build-depends: bytestring >= 0.10 && < 0.11
-
 test-suite test-scientific
   type: exitcode-stdio-1.0
   hs-source-dirs:   test
@@ -99,6 +94,7 @@
 
   build-depends: scientific
, base >= 4.3   && < 4.10
+   , bytestring   >= 0.9   && < 0.11
, binary   >= 0.4.1 && < 0.9
, tasty>= 0.5   && < 0.12
, tasty-ant-xml>= 1.0   && < 1.1
@@ -109,9 +105,8 @@

commit ghc-scientific for openSUSE:Factory

2016-03-16 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2016-03-16 10:36:00

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2015-12-01 09:19:35.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2016-03-16 10:36:11.0 +0100
@@ -1,0 +2,14 @@
+Sat Mar 12 09:29:12 UTC 2016 - mimi...@gmail.com
+
+- update to 0.3.4.6
+* Made toDecimalDigits more similar to floatToDigits
+* Introduce a special case for 0 in fromFloatDigits
+
+---
+Thu Mar 10 09:00:33 UTC 2016 - mimi...@gmail.com
+
+- update to 0.3.4.5
+* Support GHC-8.0.1
+* Support binary-0.8
+
+---

Old:

  scientific-0.3.4.4.tar.gz

New:

  scientific-0.3.4.6.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.CX3Wn0/_old  2016-03-16 10:36:12.0 +0100
+++ /var/tmp/diff_new_pack.CX3Wn0/_new  2016-03-16 10:36:12.0 +0100
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 
 Name:   ghc-scientific
-Version:0.3.4.4
+Version:0.3.4.6
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.4.tar.gz -> scientific-0.3.4.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.4/changelog 
new/scientific-0.3.4.6/changelog
--- old/scientific-0.3.4.4/changelog2015-11-24 02:04:05.0 +0100
+++ new/scientific-0.3.4.6/changelog2016-03-10 13:09:06.0 +0100
@@ -1,3 +1,32 @@
+0.3.4.6
+   * Made toDecimalDigits more similar to floatToDigits
+
+ Previously:
+
+   toDecimalDigits 0 == ([0],1)
+
+ Now:
+
+   toDecimalDigits 0 == ([0],0)
+
+ Because:
+
+   Numeric.floatToDigits 10 (0 :: Double) == ([0],0)
+
+
+   * Introduce a special case for 0 in fromFloatDigits
+
+   fromFloatDigits 0 = 0
+
+ This should fix https://github.com/bos/aeson/issues/369
+
+0.3.4.5
+   The following are all a courtesy of Oleg Grenrus (phadej):
+
+   * Support GHC-8.0.1
+   * Support binary-0.8
+   * Enable Travis continuous integration
+
 0.3.4.4
* Improved performance of toDecimalDigits by 13%.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.4/scientific.cabal 
new/scientific-0.3.4.6/scientific.cabal
--- old/scientific-0.3.4.4/scientific.cabal 2015-11-24 02:04:05.0 
+0100
+++ new/scientific-0.3.4.6/scientific.cabal 2016-03-10 13:09:06.0 
+0100
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.4
+version: 0.3.4.6
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -68,14 +68,14 @@
Utils
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
-  build-depends:   base>= 4.3   && < 4.9
+  build-depends:   base>= 4.3   && < 4.10
  , ghc-prim
  , deepseq >= 1.3   && < 1.5
  , text>= 0.8   && < 1.3
  , hashable>= 1.1.2 && < 1.3
  , vector  >= 0.5   && < 0.12
  , containers  >= 0.1   && < 0.6
- , binary  >= 0.4.1 && < 0.8
+ , binary  >= 0.4.1 && < 0.9
 
   if flag(integer-simple)
   build-depends: integer-simple
@@ -98,8 +98,8 @@
   ghc-options:  -Wall
 
   build-depends: scientific
-   , base >= 4.3   && < 4.9
-   , binary   >= 0.4.1 && < 0.8
+   , base >= 4.3   && < 4.10
+   , binary   >= 0.4.1 && < 0.9
, tasty>= 0.5   && < 0.12
, tasty-ant-xml>= 1.0   && < 1.1
, tasty-hunit  >= 0.8   && < 0.10
@@ -120,5 +120,5 @@
   default-language: Haskell2010
   ghc-options:  -O2
   build-depends:scientific
-  , base>= 4.3   && < 4.9
+  , base>= 4.3   && < 4.10
   , criterion   >= 0.5   && < 1.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 

commit ghc-scientific for openSUSE:Factory

2015-12-01 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2015-12-01 09:19:34

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2015-10-14 16:45:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2015-12-01 09:19:35.0 +0100
@@ -1,0 +2,7 @@
+Sun Nov 29 17:39:11 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.4.4
+* Fix build with integer-simple.
+* Improved performance of toDecimalDigits by 13%.
+
+---

Old:

  scientific-0.3.4.2.tar.gz

New:

  scientific-0.3.4.4.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.yWQhD1/_old  2015-12-01 09:19:36.0 +0100
+++ /var/tmp/diff_new_pack.yWQhD1/_new  2015-12-01 09:19:36.0 +0100
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 
 Name:   ghc-scientific
-Version:0.3.4.2
+Version:0.3.4.4
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.2.tar.gz -> scientific-0.3.4.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.2/bench/bench.hs 
new/scientific-0.3.4.4/bench/bench.hs
--- old/scientific-0.3.4.2/bench/bench.hs   2015-10-10 10:42:48.0 
+0200
+++ new/scientific-0.3.4.4/bench/bench.hs   2015-11-24 02:04:05.0 
+0100
@@ -36,6 +36,10 @@
  [ bench "round"(nf (round :: Scientific -> Integer) $! pos)
  , bench "roundDefault" (nf roundDefault $! pos)
  ]
+
+   , bgroup "toDecimalDigits"
+ [ bench "big" (nf toDecimalDigits $! big)
+ ]
]
 where
   pos :: Fractional a => a
@@ -50,6 +54,9 @@
   negInt :: Fractional a => a
   negInt = -int
 
+  big :: Scientific
+  big = read $ "0." ++ concat (replicate 20 "0123456789")
+
 realToFracStoD :: Scientific -> Double
 realToFracStoD = fromRational . toRational
 {-# INLINE realToFracStoD #-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.2/changelog 
new/scientific-0.3.4.4/changelog
--- old/scientific-0.3.4.2/changelog2015-10-10 10:42:48.0 +0200
+++ new/scientific-0.3.4.4/changelog2015-11-24 02:04:05.0 +0100
@@ -1,3 +1,9 @@
+0.3.4.4
+   * Improved performance of toDecimalDigits by 13%.
+
+0.3.4.3
+   * Fix build with integer-simple.
+
 0.3.4.2
* Fix build on GHC-7.4.
  Courtesy of Adam Bergmark..
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.2/scientific.cabal 
new/scientific-0.3.4.4/scientific.cabal
--- old/scientific-0.3.4.2/scientific.cabal 2015-10-10 10:42:48.0 
+0200
+++ new/scientific-0.3.4.4/scientific.cabal 2015-11-24 02:04:05.0 
+0100
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.2
+version: 0.3.4.4
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -64,6 +64,7 @@
Data.Text.Lazy.Builder.Scientific
   other-modules:   Math.NumberTheory.Logarithms
GHC.Integer.Logarithms.Compat
+   GHC.Integer.Compat
Utils
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
@@ -114,20 +115,10 @@
 
 benchmark bench-scientific
   type: exitcode-stdio-1.0
-  hs-source-dirs:   bench src
+  hs-source-dirs:   bench
   main-is:  bench.hs
   default-language: Haskell2010
   ghc-options:  -O2
-  build-depends:base>= 4.3   && < 4.9
+  build-depends:scientific
+  , base>= 4.3   && < 4.9
   , criterion   >= 0.5   && < 1.2
-  , ghc-prim
-  , deepseq >= 1.3   && < 1.5
-  , text>= 0.8   && < 1.3
-  , bytestring  >= 0.10  && < 0.11
-  , hashable>= 1.1.2 && < 1.3
-  , vector  >= 0.5   && < 0.12
-
-  if flag(integer-simple)
-  build-depends: integer-simple
-  else
-  build-depends: integer-gmp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 

commit ghc-scientific for openSUSE:Factory

2015-10-14 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2015-10-14 16:45:21

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2015-10-08 08:24:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2015-10-14 16:45:22.0 +0200
@@ -1,0 +2,6 @@
+Mon Oct 12 18:53:43 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.4.2
+* build fixes
+
+---

Old:

  scientific-0.3.4.0.tar.gz

New:

  scientific-0.3.4.2.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.uBKYcs/_old  2015-10-14 16:45:24.0 +0200
+++ /var/tmp/diff_new_pack.uBKYcs/_new  2015-10-14 16:45:24.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 
 Name:   ghc-scientific
-Version:0.3.4.0
+Version:0.3.4.2
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.4.0.tar.gz -> scientific-0.3.4.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.0/changelog 
new/scientific-0.3.4.2/changelog
--- old/scientific-0.3.4.0/changelog2015-09-30 09:16:10.0 +0200
+++ new/scientific-0.3.4.2/changelog2015-10-10 10:42:48.0 +0200
@@ -1,3 +1,10 @@
+0.3.4.2
+   * Fix build on GHC-7.4.
+ Courtesy of Adam Bergmark..
+
+0.3.4.1
+   * Fix build on GHC-7.0.4
+
 0.3.4.0
* Added fromRationalRepetend & toRationalRepetend
  for safely converting from and to rationals
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.0/scientific.cabal 
new/scientific-0.3.4.2/scientific.cabal
--- old/scientific-0.3.4.0/scientific.cabal 2015-09-30 09:16:10.0 
+0200
+++ new/scientific-0.3.4.2/scientific.cabal 2015-10-10 10:42:48.0 
+0200
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.4.0
+version: 0.3.4.2
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
@@ -63,6 +63,7 @@
   exposed-modules: Data.Scientific
Data.Text.Lazy.Builder.Scientific
   other-modules:   Math.NumberTheory.Logarithms
+   GHC.Integer.Logarithms.Compat
Utils
   other-extensions:DeriveDataTypeable, BangPatterns
   ghc-options: -Wall
@@ -72,7 +73,7 @@
  , text>= 0.8   && < 1.3
  , hashable>= 1.1.2 && < 1.3
  , vector  >= 0.5   && < 0.12
- , containers  >= 0.5   && < 0.6
+ , containers  >= 0.1   && < 0.6
  , binary  >= 0.4.1 && < 0.8
 
   if flag(integer-simple)
@@ -88,9 +89,6 @@
 exposed-modules:   Data.ByteString.Builder.Scientific
 build-depends: bytestring >= 0.10 && < 0.11
 
-  if impl(ghc >= 7.2.1)
-cpp-options: -DGENERICS
-
 test-suite test-scientific
   type: exitcode-stdio-1.0
   hs-source-dirs:   test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/scientific-0.3.4.0/src/Data/ByteString/Builder/Scientific.hs 
new/scientific-0.3.4.2/src/Data/ByteString/Builder/Scientific.hs
--- old/scientific-0.3.4.0/src/Data/ByteString/Builder/Scientific.hs
2015-09-30 09:16:10.0 +0200
+++ new/scientific-0.3.4.2/src/Data/ByteString/Builder/Scientific.hs
2015-10-10 10:42:48.0 +0200
@@ -22,6 +22,8 @@
 import   Data.ByteString.Builder.Extra (byteStringCopy)
 #endif
 
+import Utils (roundTo, i2d)
+
 #if !MIN_VERSION_base(4,8,0)
 import Data.Monoid  (mempty)
 #endif
@@ -35,7 +37,6 @@
 infixr 6 <>
 #endif
 
-import Utils (roundTo, i2d)
 
 -- | A @ByteString@ @Builder@ which renders a scientific number to full
 -- precision, using standard decimal notation for arguments whose
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.0/src/Data/Scientific.hs 
new/scientific-0.3.4.2/src/Data/Scientific.hs
--- old/scientific-0.3.4.0/src/Data/Scientific.hs   2015-09-30 
09:16:10.0 +0200
+++ new/scientific-0.3.4.2/src/Data/Scientific.hs   2015-10-10 
10:42:48.0 +0200
@@ -5,10 +5,6 @@
 {-# LANGUAGE UnboxedTuples #-}
 

commit ghc-scientific for openSUSE:Factory

2015-10-08 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2015-10-08 08:24:39

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is "ghc-scientific"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2015-04-30 11:51:27.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2015-10-08 08:24:40.0 +0200
@@ -1,0 +2,14 @@
+Sun Oct  4 16:52:33 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.4.0
+*Added fromRationalRepetend & toRationalRepetend
+  for safely converting from and to rationals
+  which have a repeating decimal representation like:
+  1 % 28 = 0.03(571428).
+* Added a Binary instance.
+* Various performance improvements.
+* Support vector-0.11
+* Support tasty-0.11
+* Support criterion-1.1.0.0
+
+---

Old:

  scientific-0.3.3.8.tar.gz

New:

  scientific-0.3.4.0.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.OEvTKH/_old  2015-10-08 08:24:41.0 +0200
+++ /var/tmp/diff_new_pack.OEvTKH/_new  2015-10-08 08:24:41.0 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package ghc
+# spec file for package ghc-scientific
 #
 # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
@@ -18,8 +18,8 @@
 
 %global pkg_name scientific
 
-Name:   ghc-%{pkg_name}
-Version:0.3.3.8
+Name:   ghc-scientific
+Version:0.3.4.0
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause
@@ -36,6 +36,7 @@
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-vector-devel
 
 %description
 Data.Scientific provides a space efficient and arbitrary precision scientific

++ scientific-0.3.3.8.tar.gz -> scientific-0.3.4.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.3.8/changelog 
new/scientific-0.3.4.0/changelog
--- old/scientific-0.3.3.8/changelog2015-03-19 09:26:29.0 +0100
+++ new/scientific-0.3.4.0/changelog2015-09-30 09:16:10.0 +0200
@@ -1,3 +1,14 @@
+0.3.4.0
+   * Added fromRationalRepetend & toRationalRepetend
+ for safely converting from and to rationals
+ which have a repeating decimal representation like:
+ 1 % 28 = 0.03(571428).
+   * Added a Binary instance.
+   * Various performance improvements.
+   * Support vector-0.11
+   * Support tasty-0.11
+   * Support criterion-1.1.0.0
+
 0.3.3.8
* Support QuickCheck-2.8.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.3.8/scientific.cabal 
new/scientific-0.3.4.0/scientific.cabal
--- old/scientific-0.3.3.8/scientific.cabal 2015-03-19 09:26:29.0 
+0100
+++ new/scientific-0.3.4.0/scientific.cabal 2015-09-30 09:16:10.0 
+0200
@@ -1,17 +1,18 @@
 name:scientific
-version: 0.3.3.8
+version: 0.3.4.0
 synopsis:Numbers represented using scientific notation
 description:
-  @Data.Scientific@ provides a space efficient and arbitrary precision
-  scientific number type.
-  .
-  'Scientific' numbers are represented using
-  . It
-  uses a coefficient @c :: 'Integer'@ and a base-10 exponent @e :: 'Int'@ (do
-  note that since we're using an 'Int' to represent the exponent these numbers
-  aren't truly arbitrary precision). A scientific number corresponds to the
+  @Data.Scientific@ provides the number type 'Scientific'. Scientific numbers 
are
+  arbitrary precision and space efficient. They are represented using
+  .
+  The implementation uses a coefficient @c :: 'Integer'@ and a base-10 exponent
+  @e :: 'Int'@. A scientific number corresponds to the
   'Fractional' number: @'fromInteger' c * 10 '^^' e@.
   .
+  Note that since we're using an 'Int' to represent the exponent these numbers
+  aren't truly arbitrary precision. I intend to change the type of the exponent
+  to 'Integer' in a future release.
+  .
   The main application of 'Scientific' is to be used as the target of parsing
   arbitrary precision numbers coming from an untrusted source. The advantages
   over using 'Rational' for this are that:
@@ -62,6 +63,7 @@
   exposed-modules: Data.Scientific
Data.Text.Lazy.Builder.Scientific
   

commit ghc-scientific for openSUSE:Factory

2015-04-30 Thread h_root
Hello community,

here is the log from the commit of package ghc-scientific for openSUSE:Factory 
checked in at 2015-04-30 11:51:26

Comparing /work/SRC/openSUSE:Factory/ghc-scientific (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-scientific.new (New)


Package is ghc-scientific

Changes:

--- /work/SRC/openSUSE:Factory/ghc-scientific/ghc-scientific.changes
2015-04-10 09:50:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes   
2015-04-30 11:51:27.0 +0200
@@ -1,0 +2,5 @@
+Sun Apr 12 18:49:55 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.3.8 
+
+---

Old:

  scientific-0.3.3.7.tar.gz

New:

  scientific-0.3.3.8.tar.gz



Other differences:
--
++ ghc-scientific.spec ++
--- /var/tmp/diff_new_pack.0Gmw0i/_old  2015-04-30 11:51:27.0 +0200
+++ /var/tmp/diff_new_pack.0Gmw0i/_new  2015-04-30 11:51:27.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name scientific
 
 Name:   ghc-%{pkg_name}
-Version:0.3.3.7
+Version:0.3.3.8
 Release:0
 Summary:Numbers represented using scientific notation
 License:BSD-3-Clause

++ scientific-0.3.3.7.tar.gz - scientific-0.3.3.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.3.7/changelog 
new/scientific-0.3.3.8/changelog
--- old/scientific-0.3.3.7/changelog2015-01-21 19:53:38.0 +0100
+++ new/scientific-0.3.3.8/changelog2015-03-19 09:26:29.0 +0100
@@ -1,3 +1,6 @@
+0.3.3.8
+   * Support QuickCheck-2.8.
+
 0.3.3.7
* Fixed both the
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.3.7/scientific.cabal 
new/scientific-0.3.3.8/scientific.cabal
--- old/scientific-0.3.3.7/scientific.cabal 2015-01-21 19:53:38.0 
+0100
+++ new/scientific-0.3.3.8/scientific.cabal 2015-03-19 09:26:29.0 
+0100
@@ -1,5 +1,5 @@
 name:scientific
-version: 0.3.3.7
+version: 0.3.3.8
 synopsis:Numbers represented using scientific notation
 description:
   @Data.Scientific@ provides a space efficient and arbitrary precision
@@ -99,7 +99,7 @@
, tasty-smallcheck = 0.2 0.9
, tasty-quickcheck = 0.8 0.9
, smallcheck   = 1.0 1.2
-   , QuickCheck   = 2.5 2.8
+   , QuickCheck   = 2.5 2.9
, text = 0.8 1.3
, bytestring   = 0.100.11