Hello community, here is the log from the commit of package ghc-mono-traversable for openSUSE:Factory checked in at 2016-04-22 16:25:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-mono-traversable (Old) and /work/SRC/openSUSE:Factory/.ghc-mono-traversable.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-mono-traversable" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-mono-traversable/ghc-mono-traversable.changes 2016-02-23 16:59:33.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-mono-traversable.new/ghc-mono-traversable.changes 2016-04-22 16:25:26.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Apr 13 10:06:06 UTC 2016 - mimi...@gmail.com + +- update to 0.10.2 +* Add delete and deleteBy methods to EqSequence + +------------------------------------------------------------------- Old: ---- mono-traversable-0.10.1.1.tar.gz New: ---- mono-traversable-0.10.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-mono-traversable.spec ++++++ --- /var/tmp/diff_new_pack.uIoYo2/_old 2016-04-22 16:25:26.000000000 +0200 +++ /var/tmp/diff_new_pack.uIoYo2/_new 2016-04-22 16:25:26.000000000 +0200 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-mono-traversable -Version: 0.10.1.1 +Version: 0.10.2 Release: 0 Summary: Type classes for mapping, folding, and traversing monomorphic containers Group: System/Libraries ++++++ mono-traversable-0.10.1.1.tar.gz -> mono-traversable-0.10.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mono-traversable-0.10.1.1/ChangeLog.md new/mono-traversable-0.10.2/ChangeLog.md --- old/mono-traversable-0.10.1.1/ChangeLog.md 2016-02-15 12:36:18.000000000 +0100 +++ new/mono-traversable-0.10.2/ChangeLog.md 2016-04-11 08:16:17.000000000 +0200 @@ -1,3 +1,7 @@ +## 0.10.2 + +* Add `delete` and `deleteBy` methods to EqSequence [#94](https://github.com/snoyberg/mono-traversable/pull/94) + ## 0.10.1.1 * Remove unneeded INLINEs [#90](https://github.com/snoyberg/mono-traversable/issues/90) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mono-traversable-0.10.1.1/mono-traversable.cabal new/mono-traversable-0.10.2/mono-traversable.cabal --- old/mono-traversable-0.10.1.1/mono-traversable.cabal 2016-02-15 12:36:18.000000000 +0100 +++ new/mono-traversable-0.10.2/mono-traversable.cabal 2016-04-11 08:16:17.000000000 +0200 @@ -1,5 +1,5 @@ name: mono-traversable -version: 0.10.1.1 +version: 0.10.2 synopsis: Type classes for mapping, folding, and traversing monomorphic containers description: Monomorphic variants of the Functor, Foldable, and Traversable typeclasses. If you understand Haskell's basic typeclasses, you understand mono-traversable. In addition to what you are used to, it adds on an IsSequence typeclass and has code for marking data structures as non-empty. homepage: https://github.com/snoyberg/mono-traversable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mono-traversable-0.10.1.1/src/Data/GrowingAppend.hs new/mono-traversable-0.10.2/src/Data/GrowingAppend.hs --- old/mono-traversable-0.10.1.1/src/Data/GrowingAppend.hs 2016-02-15 12:36:18.000000000 +0100 +++ new/mono-traversable-0.10.2/src/Data/GrowingAppend.hs 2016-04-11 08:16:17.000000000 +0200 @@ -22,7 +22,7 @@ import qualified Data.DList as DList import Data.DList.Instances () --- | olength (x <> y) >= olength x + olength y +-- | olength (x <> y) >= max (olength x) (olength y) class (Semigroup mono, MonoFoldable mono) => GrowingAppend mono instance GrowingAppend (Seq.Seq a) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mono-traversable-0.10.1.1/src/Data/Sequences.hs new/mono-traversable-0.10.2/src/Data/Sequences.hs --- old/mono-traversable-0.10.1.1/src/Data/Sequences.hs 2016-02-15 12:36:18.000000000 +0100 +++ new/mono-traversable-0.10.2/src/Data/Sequences.hs 2016-04-11 08:16:17.000000000 +0200 @@ -1262,6 +1262,18 @@ -- Equivalent to @'groupAllOn' id@ groupAll :: seq -> [seq] groupAll = groupAllOn id + + -- | + -- + -- @since 0.10.2 + delete :: Element seq -> seq -> seq + delete = deleteBy (==) + + -- | + -- + -- @since 0.10.2 + deleteBy :: (Element seq -> Element seq -> Bool) -> Element seq -> seq -> seq + deleteBy eq x = fromList . List.deleteBy eq x . otoList {-# INLINE splitElem #-} {-# INLINE splitSeq #-} {-# INLINE isPrefixOf #-} @@ -1271,6 +1283,8 @@ {-# INLINE stripSuffix #-} {-# INLINE group #-} {-# INLINE groupAll #-} + {-# INLINE delete #-} + {-# INLINE deleteBy #-} {-# DEPRECATED elem "use oelem" #-} elem :: EqSequence seq => Element seq -> seq -> Bool @@ -1292,6 +1306,8 @@ isPrefixOf = List.isPrefixOf isSuffixOf x y = List.isPrefixOf (List.reverse x) (List.reverse y) isInfixOf = List.isInfixOf + delete = List.delete + deleteBy = List.deleteBy {-# INLINE splitSeq #-} {-# INLINE stripPrefix #-} {-# INLINE stripSuffix #-} @@ -1299,6 +1315,8 @@ {-# INLINE isPrefixOf #-} {-# INLINE isSuffixOf #-} {-# INLINE isInfixOf #-} + {-# INLINE delete #-} + {-# INLINE deleteBy #-} instance EqSequence S.ByteString where splitElem sep s | S.null s = [S.empty]