Hello community,
here is the log from the commit of package ghc-mono-traversable for
openSUSE:Factory checked in at 2018-08-04 21:54:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-mono-traversable (Old)
and /work/SRC/openSUSE:Factory/.ghc-mono-traversable.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-mono-traversable"
Sat Aug 4 21:54:05 2018 rev:14 rq:627278 version:1.0.9.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-mono-traversable/ghc-mono-traversable.changes
2018-07-21 10:22:17.654999835 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-mono-traversable.new/ghc-mono-traversable.changes
2018-08-04 21:54:05.649355028 +0200
@@ -1,0 +2,9 @@
+Thu Aug 2 16:29:53 UTC 2018 - [email protected]
+
+- Update mono-traversable to version 1.0.9.0.
+ ## 1.0.9.0
+
+ * Added `filterMap` to `Data.Containers`
+ [#167](https://github.com/snoyberg/mono-traversable/pull/167)
+
+-------------------------------------------------------------------
Old:
----
mono-traversable-1.0.8.1.tar.gz
New:
----
mono-traversable-1.0.9.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-mono-traversable.spec ++++++
--- /var/tmp/diff_new_pack.cfsX0U/_old 2018-08-04 21:54:06.069355813 +0200
+++ /var/tmp/diff_new_pack.cfsX0U/_new 2018-08-04 21:54:06.069355813 +0200
@@ -19,7 +19,7 @@
%global pkg_name mono-traversable
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.0.8.1
+Version: 1.0.9.0
Release: 0
Summary: Type classes for mapping, folding, and traversing monomorphic
containers
License: MIT
++++++ mono-traversable-1.0.8.1.tar.gz -> mono-traversable-1.0.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mono-traversable-1.0.8.1/ChangeLog.md
new/mono-traversable-1.0.9.0/ChangeLog.md
--- old/mono-traversable-1.0.8.1/ChangeLog.md 2018-01-16 10:37:12.000000000
+0100
+++ new/mono-traversable-1.0.9.0/ChangeLog.md 2018-08-02 07:29:05.000000000
+0200
@@ -1,3 +1,8 @@
+## 1.0.9.0
+
+* Added `filterMap` to `Data.Containers`
+ [#167](https://github.com/snoyberg/mono-traversable/pull/167)
+
## 1.0.8.1
* Compat with gauge 0.1 and 0.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mono-traversable-1.0.8.1/README.md
new/mono-traversable-1.0.9.0/README.md
--- old/mono-traversable-1.0.8.1/README.md 2016-07-04 09:21:45.000000000
+0200
+++ new/mono-traversable-1.0.9.0/README.md 2018-08-02 07:29:05.000000000
+0200
@@ -13,7 +13,7 @@
In addition to this package, the
[mono-traversable-instances](https://www.stackage.org/package/mono-traversable-instances)
-pacakge provides a number of orphan instances.
+package provides a number of orphan instances.
Using Typeclasses
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mono-traversable-1.0.8.1/mono-traversable.cabal
new/mono-traversable-1.0.9.0/mono-traversable.cabal
--- old/mono-traversable-1.0.8.1/mono-traversable.cabal 2018-01-16
10:39:44.000000000 +0100
+++ new/mono-traversable-1.0.9.0/mono-traversable.cabal 2018-08-02
07:29:33.000000000 +0200
@@ -1,11 +1,13 @@
--- This file has been generated from package.yaml by hpack version 0.20.0.
+cabal-version: >= 1.10
+
+-- This file has been generated from package.yaml by hpack version 0.29.0.
--
-- see: https://github.com/sol/hpack
--
--- hash: 19fd8f1ebe28579b3a09d195725bc11e4c50c0f81206fdfce0513a912a546cf4
+-- hash: 6bcc1ed72e15c5adb841eb249f106e08f6823d8dfb67f86e62a140618a3b93c0
name: mono-traversable
-version: 1.0.8.1
+version: 1.0.9.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
@@ -16,8 +18,6 @@
license: MIT
license-file: LICENSE
build-type: Simple
-cabal-version: >= 1.10
-
extra-source-files:
ChangeLog.md
README.md
@@ -31,7 +31,7 @@
src
ghc-options: -Wall
build-depends:
- base >=4.7 && <5
+ base >=4.9 && <5
, bytestring >=0.9
, containers >=0.4
, hashable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mono-traversable-1.0.8.1/src/Data/Containers.hs
new/mono-traversable-1.0.9.0/src/Data/Containers.hs
--- old/mono-traversable-1.0.8.1/src/Data/Containers.hs 2016-07-04
09:21:45.000000000 +0200
+++ new/mono-traversable-1.0.9.0/src/Data/Containers.hs 2018-08-02
07:29:05.000000000 +0200
@@ -562,6 +562,12 @@
where
go (k, v) = [(f k, v)]
+ -- | Filter values in a map.
+ --
+ -- @since 1.0.9.0
+ filterMap :: IsMap map => (MapValue map -> Bool) -> map -> map
+ filterMap p = mapFromList . filter (p . snd) . mapToList
+
#if MIN_VERSION_containers(0, 5, 0)
-- | This instance uses the functions from "Data.Map.Strict".
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mono-traversable-1.0.8.1/src/Data/MonoTraversable.hs
new/mono-traversable-1.0.9.0/src/Data/MonoTraversable.hs
--- old/mono-traversable-1.0.8.1/src/Data/MonoTraversable.hs 2017-12-08
06:59:12.000000000 +0100
+++ new/mono-traversable-1.0.9.0/src/Data/MonoTraversable.hs 2018-08-02
07:29:05.000000000 +0200
@@ -942,6 +942,9 @@
{-# INLINE minimumByMay #-}
-- | Monomorphic containers that can be traversed from left to right.
+--
+-- NOTE: Due to limitations with the role system, GHC is yet unable to provide
newtype-derivation of
+-- 'MonoTraversable'. See
<https://stackoverflow.com/questions/49776924/newtype-deriving-issequence>.
class (MonoFunctor mono, MonoFoldable mono) => MonoTraversable mono where
-- | Map each element of a monomorphic container to an action,
-- evaluate these actions from left to right, and