Hello community,

here is the log from the commit of package ghc-mono-traversable for 
openSUSE:Factory checked in at 2019-08-24 18:44:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-mono-traversable (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-mono-traversable.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-mono-traversable"

Sat Aug 24 18:44:21 2019 rev:18 rq:725521 version:1.0.12.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-mono-traversable/ghc-mono-traversable.changes    
    2019-02-17 12:20:13.604218942 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-mono-traversable.new.7948/ghc-mono-traversable.changes
      2019-08-24 18:44:25.737768749 +0200
@@ -1,0 +2,9 @@
+Thu Aug 15 02:01:34 UTC 2019 - psim...@suse.com
+
+- Update mono-traversable to version 1.0.12.0.
+  ## 1.0.12.0
+  * Added `filterSet` to `Data.Containers`
+  * Use container specific implementations for `filterSet` and `filterMap`
+    [#178](https://github.com/snoyberg/mono-traversable/pull/178)
+
+-------------------------------------------------------------------

Old:
----
  mono-traversable-1.0.11.0.tar.gz

New:
----
  mono-traversable-1.0.12.0.tar.gz

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

Other differences:
------------------
++++++ ghc-mono-traversable.spec ++++++
--- /var/tmp/diff_new_pack.fsdKF9/_old  2019-08-24 18:44:26.197768704 +0200
+++ /var/tmp/diff_new_pack.fsdKF9/_new  2019-08-24 18:44:26.205768704 +0200
@@ -19,7 +19,7 @@
 %global pkg_name mono-traversable
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        1.0.11.0
+Version:        1.0.12.0
 Release:        0
 Summary:        Type classes for mapping, folding, and traversing monomorphic 
containers
 License:        MIT

++++++ mono-traversable-1.0.11.0.tar.gz -> mono-traversable-1.0.12.0.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mono-traversable-1.0.11.0/ChangeLog.md 
new/mono-traversable-1.0.12.0/ChangeLog.md
--- old/mono-traversable-1.0.11.0/ChangeLog.md  2019-02-02 17:09:51.000000000 
+0100
+++ new/mono-traversable-1.0.12.0/ChangeLog.md  2019-08-14 05:22:01.000000000 
+0200
@@ -1,3 +1,8 @@
+## 1.0.12.0
+* Added `filterSet` to `Data.Containers`
+* Use container specific implementations for `filterSet` and `filterMap`
+  [#178](https://github.com/snoyberg/mono-traversable/pull/178)
+
 ## 1.0.11.0
 
 * Adding monomorphic instances for GHC.Generics and Data.Proxy types
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mono-traversable-1.0.11.0/mono-traversable.cabal 
new/mono-traversable-1.0.12.0/mono-traversable.cabal
--- old/mono-traversable-1.0.11.0/mono-traversable.cabal        2019-02-02 
17:10:44.000000000 +0100
+++ new/mono-traversable-1.0.12.0/mono-traversable.cabal        2019-08-14 
05:22:04.000000000 +0200
@@ -1,13 +1,13 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.31.1.
+-- This file has been generated from package.yaml by hpack version 0.31.2.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: d58c5bc6fce9bf509cf559fa04639076650c2e3c940a7a1d113ea8f647a49335
+-- hash: bb2c95aee7a253f7f93bf9fb96eeb108b577eb9e3bf4015d290187a0f4dafc28
 
 name:           mono-traversable
-version:        1.0.11.0
+version:        1.0.12.0
 synopsis:       Type classes for mapping, folding, and traversing monomorphic 
containers
 description:    Please see the README at 
<https://www.stackage.org/package/mono-traversable>
 category:       Data
@@ -27,6 +27,14 @@
   location: https://github.com/snoyberg/mono-traversable
 
 library
+  exposed-modules:
+      Data.Containers
+      Data.MonoTraversable
+      Data.MonoTraversable.Unprefixed
+      Data.NonNull
+      Data.Sequences
+  other-modules:
+      Paths_mono_traversable
   hs-source-dirs:
       src
   ghc-options: -Wall
@@ -44,19 +52,14 @@
   if impl(ghc <8.0)
     build-depends:
         semigroups >=0.10
-  exposed-modules:
-      Data.Containers
-      Data.MonoTraversable
-      Data.MonoTraversable.Unprefixed
-      Data.NonNull
-      Data.Sequences
-  other-modules:
-      Paths_mono_traversable
   default-language: Haskell2010
 
 test-suite test
   type: exitcode-stdio-1.0
   main-is: main.hs
+  other-modules:
+      Spec
+      Paths_mono_traversable
   hs-source-dirs:
       test
   ghc-options: -O0
@@ -74,14 +77,13 @@
     , transformers
     , unordered-containers
     , vector
-  other-modules:
-      Spec
-      Paths_mono_traversable
   default-language: Haskell2010
 
 benchmark sorting
   type: exitcode-stdio-1.0
   main-is: sorting.hs
+  other-modules:
+      Paths_mono_traversable
   hs-source-dirs:
       bench
   ghc-options: -Wall -O2
@@ -91,6 +93,4 @@
     , mono-traversable
     , mwc-random
     , vector
-  other-modules:
-      Paths_mono_traversable
   default-language: Haskell2010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mono-traversable-1.0.11.0/src/Data/Containers.hs 
new/mono-traversable-1.0.12.0/src/Data/Containers.hs
--- old/mono-traversable-1.0.11.0/src/Data/Containers.hs        2018-08-02 
07:29:05.000000000 +0200
+++ new/mono-traversable-1.0.12.0/src/Data/Containers.hs        2019-08-14 
05:22:01.000000000 +0200
@@ -616,6 +616,8 @@
     {-# INLINE mapWithKey #-}
     omapKeysWith = Map.mapKeysWith
     {-# INLINE omapKeysWith #-}
+    filterMap = Map.filter
+    {-# INLINE filterMap #-}
 
 #if MIN_VERSION_containers(0, 5, 0)
 -- | This instance uses the functions from "Data.HashMap.Strict".
@@ -653,6 +655,8 @@
     --unionsWith = HashMap.unionsWith
     --mapWithKey = HashMap.mapWithKey
     --mapKeysWith = HashMap.mapKeysWith
+    filterMap = HashMap.filter
+    {-# INLINE filterMap #-}
 
 #if MIN_VERSION_containers(0, 5, 0)
 -- | This instance uses the functions from "Data.IntMap.Strict".
@@ -703,6 +707,8 @@
     omapKeysWith = IntMap.mapKeysWith
     {-# INLINE omapKeysWith #-}
 #endif
+    filterMap = IntMap.filter
+    {-# INLINE filterMap #-}
 
 instance Eq key => IsMap [(key, value)] where
     type MapValue [(key, value)] = value
@@ -736,6 +742,12 @@
     -- | Convert a set to a list.
     setToList :: set -> [Element set]
 
+    -- | Filter values in a set.
+    --
+    -- @since 1.0.12.0
+    filterSet :: (Element set -> Bool) -> set -> set
+    filterSet p = setFromList . filter p . setToList
+
 instance Ord element => IsSet (Set.Set element) where
     insertSet = Set.insert
     {-# INLINE insertSet #-}
@@ -747,6 +759,8 @@
     {-# INLINE setFromList #-}
     setToList = Set.toList
     {-# INLINE setToList #-}
+    filterSet = Set.filter
+    {-# INLINE filterSet #-}
 
 instance (Eq element, Hashable element) => IsSet (HashSet.HashSet element) 
where
     insertSet = HashSet.insert
@@ -759,6 +773,8 @@
     {-# INLINE setFromList #-}
     setToList = HashSet.toList
     {-# INLINE setToList #-}
+    filterSet = HashSet.filter
+    {-# INLINE filterSet #-}
 
 instance IsSet IntSet.IntSet where
     insertSet = IntSet.insert
@@ -771,6 +787,8 @@
     {-# INLINE setFromList #-}
     setToList = IntSet.toList
     {-# INLINE setToList #-}
+    filterSet = IntSet.filter
+    {-# INLINE filterSet #-}
 
 
 -- | Zip operations on 'MonoFunctor's.


Reply via email to