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.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-scientific.new/ghc-scientific.changes       
2016-06-14 23:08:40.000000000 +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.000000000 +0200
+++ /var/tmp/diff_new_pack.BuWKWL/_new  2016-06-14 23:08:41.000000000 +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/changelog    2016-03-10 13:09:06.000000000 +0100
+++ new/scientific-0.3.4.7/changelog    2016-06-11 13:45:37.000000000 +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.000000000 
+0100
+++ new/scientific-0.3.4.7/scientific.cabal     2016-06-11 13:45:37.000000000 
+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 @@
                , QuickCheck       >= 2.5   && < 2.9
                , text             >= 0.8   && < 1.3
 
-  if flag(bytestring-builder)
-    build-depends: bytestring >= 0.10 && < 0.11
-    cpp-options: -DBYTESTRING_BUILDER
+  if !impl(ghc >= 7.8)
+      build-depends: bytestring-builder >= 0.10.4 && < 0.11
 
 benchmark bench-scientific
   type:             exitcode-stdio-1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/scientific-0.3.4.6/src/Data/ByteString/Builder/Scientific.hs 
new/scientific-0.3.4.7/src/Data/ByteString/Builder/Scientific.hs
--- old/scientific-0.3.4.6/src/Data/ByteString/Builder/Scientific.hs    
2016-03-10 13:09:06.000000000 +0100
+++ new/scientific-0.3.4.7/src/Data/ByteString/Builder/Scientific.hs    
2016-06-11 13:45:37.000000000 +0200
@@ -12,15 +12,8 @@
 import Data.Text.Lazy.Builder.RealFloat (FPFormat(..))
 
 import qualified Data.ByteString.Char8 as BC8
-
-#if !MIN_VERSION_bytestring(0,10,2)
-import           Data.ByteString.Lazy.Builder (Builder, string8, char8)
-import           Data.ByteString.Lazy.Builder.ASCII (intDec)
-import           Data.ByteString.Lazy.Builder.Extras (byteStringCopy)
-#else
 import           Data.ByteString.Builder (Builder, string8, char8, intDec)
 import           Data.ByteString.Builder.Extra (byteStringCopy)
-#endif
 
 import Utils (roundTo, i2d)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scientific-0.3.4.6/test/test.hs 
new/scientific-0.3.4.7/test/test.hs
--- old/scientific-0.3.4.6/test/test.hs 2016-03-10 13:09:06.000000000 +0100
+++ new/scientific-0.3.4.7/test/test.hs 2016-06-11 13:45:37.000000000 +0200
@@ -31,16 +31,9 @@
 import qualified Data.Text.Lazy.Builder.Scientific  as T
 import           Numeric ( floatToDigits )
 
-#ifdef BYTESTRING_BUILDER
 import qualified Data.ByteString.Lazy.Char8         as BLC8
 import qualified Data.ByteString.Builder.Scientific as B
-
-#if !MIN_VERSION_bytestring(0,10,2)
-import qualified Data.ByteString.Lazy.Builder       as B
-#else
 import qualified Data.ByteString.Builder            as B
-#endif
-#endif
 
 main :: IO ()
 main = testMain $ testGroup "scientific"
@@ -83,12 +76,10 @@
           TL.unpack (TLB.toLazyText $
                        T.formatScientificBuilder Scientific.Generic Nothing s)
 
-#ifdef BYTESTRING_BUILDER
       , testProperty "ByteString" $ \s ->
           formatScientific Scientific.Generic Nothing s ==
           BLC8.unpack (B.toLazyByteString $
                         B.formatScientificBuilder Scientific.Generic Nothing s)
-#endif
       ]
 
     , testProperty "formatScientific_fromFloatDigits" $ \(d::Double) ->


Reply via email to