Hello community,

here is the log from the commit of package ghc-foundation for openSUSE:Factory 
checked in at 2019-02-17 12:20:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-foundation (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-foundation.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-foundation"

Sun Feb 17 12:20:05 2019 rev:10 rq:674298 version:0.0.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-foundation/ghc-foundation.changes    
2018-10-25 08:25:38.407821507 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-foundation.new.28833/ghc-foundation.changes 
2019-02-17 12:20:06.384220926 +0100
@@ -1,0 +2,6 @@
+Thu Feb  7 13:48:59 UTC 2019 - [email protected]
+
+- Update foundation to version 0.0.23.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------

Old:
----
  foundation-0.0.21.tar.gz

New:
----
  foundation-0.0.23.tar.gz

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

Other differences:
------------------
++++++ ghc-foundation.spec ++++++
--- /var/tmp/diff_new_pack.XuhbA5/_old  2019-02-17 12:20:06.868220793 +0100
+++ /var/tmp/diff_new_pack.XuhbA5/_new  2019-02-17 12:20:06.868220793 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-foundation
 #
-# 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
@@ -19,7 +19,7 @@
 %global pkg_name foundation
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.0.21
+Version:        0.0.23
 Release:        0
 Summary:        Alternative prelude with batteries and no dependencies
 License:        BSD-3-Clause

++++++ foundation-0.0.21.tar.gz -> foundation-0.0.23.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/Foundation/Conduit/Internal.hs 
new/foundation-0.0.23/Foundation/Conduit/Internal.hs
--- old/foundation-0.0.21/Foundation/Conduit/Internal.hs        2018-03-13 
11:08:09.000000000 +0100
+++ new/foundation-0.0.23/Foundation/Conduit/Internal.hs        2019-01-09 
12:14:46.000000000 +0100
@@ -11,6 +11,8 @@
 {-# LANGUAGE ScopedTypeVariables #-}
 {-# LANGUAGE Rank2Types #-}
 {-# LANGUAGE OverloadedStrings #-}
+{-# OPTIONS_GHC -Wno-inline-rule-shadowing #-}
+
 module Foundation.Conduit.Internal
     ( Pipe(..)
     , Conduit(..)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/Foundation/Network/IPv4.hs 
new/foundation-0.0.23/Foundation/Network/IPv4.hs
--- old/foundation-0.0.21/Foundation/Network/IPv4.hs    2018-07-08 
10:14:14.000000000 +0200
+++ new/foundation-0.0.23/Foundation/Network/IPv4.hs    2019-02-04 
06:49:59.000000000 +0100
@@ -28,7 +28,7 @@
 import Data.Proxy
 import Foundation.String (String)
 import Foundation.Primitive
-import Foundation.Bits
+import Basement.Bits
 import Foundation.Parser hiding (peek)
 import Foundation.Collection (Sequential, Element, elem)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/Foundation/Time/StopWatch.hs 
new/foundation-0.0.23/Foundation/Time/StopWatch.hs
--- old/foundation-0.0.21/Foundation/Time/StopWatch.hs  2018-03-13 
11:08:09.000000000 +0100
+++ new/foundation-0.0.23/Foundation/Time/StopWatch.hs  2019-01-09 
12:14:46.000000000 +0100
@@ -107,5 +107,7 @@
         pure $ NanoSeconds $ (endSec * secondInNano + endNSec) - (startSec * 
secondInNano + startNSec)
 #endif
 
+#if !defined(darwin_HOST_OS)
 secondInNano :: Word64
 secondInNano = 1000000000
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/Foundation/Time/Types.hs 
new/foundation-0.0.23/Foundation/Time/Types.hs
--- old/foundation-0.0.21/Foundation/Time/Types.hs      2018-07-08 
10:43:29.000000000 +0200
+++ new/foundation-0.0.23/Foundation/Time/Types.hs      2019-01-09 
12:14:46.000000000 +0100
@@ -34,7 +34,7 @@
     primAddrRead addr ofs    = primAddrRead addr (coerce ofs)
     primAddrWrite addr ofs v = primAddrWrite addr (coerce ofs) (coerce v :: 
Word64)
 
--- | An amount of nanoseconds
+-- | An amount of seconds
 newtype Seconds = Seconds Word64
     deriving (Show,Eq,Ord,Additive,Enum,Bounded)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/benchs/LargeWords.hs 
new/foundation-0.0.23/benchs/LargeWords.hs
--- old/foundation-0.0.21/benchs/LargeWords.hs  1970-01-01 01:00:00.000000000 
+0100
+++ new/foundation-0.0.23/benchs/LargeWords.hs  2019-01-09 12:14:46.000000000 
+0100
@@ -0,0 +1,45 @@
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE RebindableSyntax #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE TypeApplications #-}
+module LargeWords where
+
+import Foundation
+import Basement.From
+import Basement.Types.Word128 (Word128)
+import Basement.Types.Word256 (Word256)
+import qualified Basement.Types.Word128 as Word128
+import qualified Basement.Types.Word256 as Word256
+import BenchUtil.Common
+
+largeNumber64 :: Natural
+largeNumber64 = 0xffffffffffffffff
+
+largeNumber128 :: Natural
+largeNumber128 = 0xfffffffffffffffffffffffffffffff
+
+largeNumber256 :: Natural
+largeNumber256 = 0xffffffffffffffffffffffffffffffffffffffffffffffff
+
+benchLargeWords =
+    [ bgroup "Addition"
+        [ bgroup "Word128"
+            [ bench "Word128" $ whnf (+ 1240) (Word128.fromNatural 
largeNumber128)
+            , bench "Natural" $ whnf (+ 1240) largeNumber128
+            ]
+        , bgroup "Word256"
+            [ bench "Word256" $ whnf (+ 200) (Word256.fromNatural 
largeNumber256)
+            , bench "Natural" $ whnf (+ 200) largeNumber256
+            ]
+        ]
+    , bgroup "Multiplication"
+        [ bgroup "Word128"
+            [ bench "Word128" $ whnf (* 1240) (Word128.fromNatural 
largeNumber128)
+            , bench "Natural" $ whnf (* 1240) largeNumber128
+            ]
+        , bgroup "Word256"
+            [ bench "Word256" $ whnf (* 200) (Word256.fromNatural 
largeNumber256)
+            , bench "Natural" $ whnf (* 200) largeNumber256
+            ]
+        ]
+    ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/benchs/Main.hs 
new/foundation-0.0.23/benchs/Main.hs
--- old/foundation-0.0.21/benchs/Main.hs        2018-03-13 11:08:09.000000000 
+0100
+++ new/foundation-0.0.23/benchs/Main.hs        2019-01-09 12:14:46.000000000 
+0100
@@ -16,6 +16,7 @@
 import qualified Basement.Block.Builder as Builder
 
 import Sys
+import LargeWords
 
 #ifdef BENCH_ALL
 import qualified Data.ByteString as ByteString
@@ -353,4 +354,5 @@
 main = defaultMain
     [ benchsTypes
     , bgroup "Sys" benchSys
+    , bgroup "LargeWord" benchLargeWords
     ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/foundation-0.0.21/foundation.cabal 
new/foundation-0.0.23/foundation.cabal
--- old/foundation-0.0.21/foundation.cabal      2018-07-08 11:06:22.000000000 
+0200
+++ new/foundation-0.0.23/foundation.cabal      2019-02-06 07:49:21.000000000 
+0100
@@ -1,5 +1,5 @@
 name:                foundation
-version:             0.0.21
+version:             0.0.23
 synopsis:            Alternative prelude with batteries and no dependencies
 description:
     A custom prelude with no dependencies apart from base.
@@ -203,8 +203,10 @@
                    , ghc-prim
     if os(windows)
       build-depends: Win32
+      if arch(i386)
+        extra-libraries: gcc
 
-  build-depends: basement == 0.0.8
+  build-depends: basement == 0.0.10
 
   -- FIXME add suport for armel mipsel
   --  CPP-options: -DARCH_IS_LITTLE_ENDIAN
@@ -246,7 +248,7 @@
   default-extensions: NoImplicitPrelude
                       RebindableSyntax
                       OverloadedStrings
-  build-depends:     base
+  build-depends:     base > 0 && < 1000
                    , basement
                    , foundation
   ghc-options:       -Wall -fno-warn-orphans -fno-warn-missing-signatures
@@ -262,7 +264,7 @@
   default-extensions: NoImplicitPrelude
                       RebindableSyntax
   if flag(linktest)
-    build-depends:     base
+    build-depends:     base > 0 && < 1000
                      , foundation
                      , template-haskell
     buildable:     True
@@ -292,6 +294,7 @@
   other-modules:     BenchUtil.Common
                      BenchUtil.RefData
                      Sys
+                     LargeWords
                      Fake.ByteString
                      Fake.Text
                      Fake.Vector

++++++ foundation.cabal ++++++
--- /var/tmp/diff_new_pack.XuhbA5/_old  2019-02-17 12:20:06.960220768 +0100
+++ /var/tmp/diff_new_pack.XuhbA5/_new  2019-02-17 12:20:06.960220768 +0100
@@ -1,5 +1,5 @@
 name:                foundation
-version:             0.0.21
+version:             0.0.23
 x-revision: 1
 synopsis:            Alternative prelude with batteries and no dependencies
 description:
@@ -205,8 +205,10 @@
                    , ghc-prim
     if os(windows)
       build-depends: Win32
+      if arch(i386)
+        extra-libraries: gcc
 
-  build-depends: basement == 0.0.8
+  build-depends: basement == 0.0.10
 
   -- FIXME add suport for armel mipsel
   --  CPP-options: -DARCH_IS_LITTLE_ENDIAN
@@ -294,6 +296,7 @@
   other-modules:     BenchUtil.Common
                      BenchUtil.RefData
                      Sys
+                     LargeWords
                      Fake.ByteString
                      Fake.Text
                      Fake.Vector


Reply via email to