Hello community,

here is the log from the commit of package ghc-microlens for openSUSE:Factory 
checked in at 2018-11-09 07:52:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-microlens (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-microlens.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-microlens"

Fri Nov  9 07:52:34 2018 rev:11 rq:646358 version:0.4.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-microlens/ghc-microlens.changes      
2018-10-25 08:27:07.759780367 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-microlens.new/ghc-microlens.changes 
2018-11-09 07:52:41.891829656 +0100
@@ -1,0 +2,9 @@
+Sun Nov  4 03:01:26 UTC 2018 - psim...@suse.com
+
+- Update microlens to version 0.4.10.
+  Upstream has edited the change log file since the last release in
+  a non-trivial way, i.e. they did more than just add a new entry
+  at the top. You can review the file at:
+  http://hackage.haskell.org/package/microlens-0.4.10/src/CHANGELOG.md
+
+-------------------------------------------------------------------

Old:
----
  microlens-0.4.9.1.tar.gz

New:
----
  microlens-0.4.10.tar.gz

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

Other differences:
------------------
++++++ ghc-microlens.spec ++++++
--- /var/tmp/diff_new_pack.x6kYzx/_old  2018-11-09 07:52:42.715828708 +0100
+++ /var/tmp/diff_new_pack.x6kYzx/_new  2018-11-09 07:52:42.719828704 +0100
@@ -18,7 +18,7 @@
 
 %global pkg_name microlens
 Name:           ghc-%{pkg_name}
-Version:        0.4.9.1
+Version:        0.4.10
 Release:        0
 Summary:        A tiny lens library with no dependencies. If you're writing an 
app, you probably want microlens-platform, not this
 License:        BSD-3-Clause
@@ -40,9 +40,10 @@
 world”, but merely a small one. It is compatible with lens, and should have
 same performance. It also has better documentation.
 
-There's a longer readme <https://github.com/aelve/microlens#readme on Github>.
-It has a migration guide for lens users, a description of other packages in the
-family, a discussion of other lens libraries you could use instead, and so on.
+There's a longer readme <https://github.com/monadfix/microlens#readme on
+Github>. It has a migration guide for lens users, a description of other
+packages in the family, a discussion of other lens libraries you could use
+instead, and so on.
 
 Here are some usecases for this library:
 

++++++ microlens-0.4.9.1.tar.gz -> microlens-0.4.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/CHANGELOG.md 
new/microlens-0.4.10/CHANGELOG.md
--- old/microlens-0.4.9.1/CHANGELOG.md  2018-03-24 14:11:56.000000000 +0100
+++ new/microlens-0.4.10/CHANGELOG.md   2018-11-03 12:53:50.000000000 +0100
@@ -1,3 +1,8 @@
+# 0.4.10
+
+* Added `+~` and `-~`.
+* Marked `#.` and `.#` with `INLINE`.
+
 # 0.4.9.1
 
 * Reexported `<&>` from `Data.Functor` (on recent versions of `base`).
@@ -26,7 +31,7 @@
 
 # 0.4.7.0
 
-* Fixed the [Haddock crash on GHC 
8](https://github.com/aelve/microlens/issues/72) by removing default method 
implementations (`each = traverse` and `ix = ixAt`). If you had custom 
instances of `Ixed` or `Each` which relied on default methods, they'd stop 
working.
+* Fixed the [Haddock crash on GHC 
8](https://github.com/monadfix/microlens/issues/72) by removing default method 
implementations (`each = traverse` and `ix = ixAt`). If you had custom 
instances of `Ixed` or `Each` which relied on default methods, they'd stop 
working.
 
 # 0.4.6.0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/LICENSE 
new/microlens-0.4.10/LICENSE
--- old/microlens-0.4.9.1/LICENSE       2018-03-09 11:39:19.000000000 +0100
+++ new/microlens-0.4.10/LICENSE        2018-09-29 21:19:58.000000000 +0200
@@ -1,5 +1,6 @@
 Copyright (c) 2013-2016 Edward Kmett,
-              2015-2016 Artyom
+              2015-2016 Artyom Kazak,
+              2018 Monadfix
 
 All rights reserved.
 
@@ -14,7 +15,7 @@
       disclaimer in the documentation and/or other materials provided
       with the distribution.
 
-    * Neither the name of Artyom nor the names of other
+    * Neither the name of Monadfix nor the names of other
       contributors may be used to endorse or promote products derived
       from this software without specific prior written permission.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/microlens.cabal 
new/microlens-0.4.10/microlens.cabal
--- old/microlens-0.4.9.1/microlens.cabal       2018-03-24 14:11:52.000000000 
+0100
+++ new/microlens-0.4.10/microlens.cabal        2018-11-03 12:54:15.000000000 
+0100
@@ -1,12 +1,12 @@
 name:                microlens
-version:             0.4.9.1
+version:             0.4.10
 synopsis:            A tiny lens library with no dependencies. If you're 
writing an app, you probably want microlens-platform, not this.
 description:
   NOTE: If you're writing an app, you probably want 
<http://hackage.haskell.org/package/microlens-platform microlens-platform> – it 
has the most features. <http://hackage.haskell.org/package/microlens microlens> 
is intended more for library writers who want a tiny lens library (after all, 
lenses are pretty useful for everything, not just for updating records!).
   .
   This library is an extract from <http://hackage.haskell.org/package/lens 
lens> (with no dependencies). It's not a toy lenses library, unsuitable for 
“real world”, but merely a small one. It is compatible with lens, and should 
have same performance. It also has better documentation.
   .
-  There's a longer readme <https://github.com/aelve/microlens#readme on 
Github>. It has a migration guide for lens users, a description of other 
packages in the family, a discussion of other lens libraries you could use 
instead, and so on.
+  There's a longer readme <https://github.com/monadfix/microlens#readme on 
Github>. It has a migration guide for lens users, a description of other 
packages in the family, a discussion of other lens libraries you could use 
instead, and so on.
   .
   Here are some usecases for this library:
   .
@@ -31,11 +31,11 @@
   Note that microlens has no dependencies starting from GHC 7.10 (base-4.8). 
Prior to that, it depends on transformers-0.2 or above.
 license:             BSD3
 license-file:        LICENSE
-author:              Edward Kmett, Artyom
-maintainer:          Artyom <y...@artyom.me>
-homepage:            http://github.com/aelve/microlens
-bug-reports:         http://github.com/aelve/microlens/issues
--- copyright:           
+author:              Edward Kmett, Artyom Kazak
+maintainer:          Monadfix <h...@monadfix.io>
+homepage:            http://github.com/monadfix/microlens
+bug-reports:         http://github.com/monadfix/microlens/issues
+-- copyright:
 category:            Data, Lenses
 build-type:          Simple
 extra-source-files:
@@ -44,15 +44,15 @@
 
 source-repository head
   type:                git
-  location:            git://github.com/aelve/microlens.git
+  location:            git://github.com/monadfix/microlens.git
 
 library
   exposed-modules:     Lens.Micro
                        Lens.Micro.Extras
                        Lens.Micro.Internal
                        Lens.Micro.Type
-  -- other-modules:       
-  -- other-extensions:    
+  -- other-modules:
+  -- other-extensions:
 
   -- Since base-4.8 we get the Identity functor in base, so we can avoid a
   -- transformers dependency.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/src/Lens/Micro/Extras.hs 
new/microlens-0.4.10/src/Lens/Micro/Extras.hs
--- old/microlens-0.4.9.1/src/Lens/Micro/Extras.hs      2018-03-09 
11:39:19.000000000 +0100
+++ new/microlens-0.4.10/src/Lens/Micro/Extras.hs       2018-09-29 
21:20:59.000000000 +0200
@@ -3,7 +3,7 @@
 
 {- |
 Module      :  Lens.Micro.Extras
-Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom
+Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom Kazak, 2018 
Monadfix
 License     :  BSD-style (see the file LICENSE)
 -}
 module Lens.Micro.Extras
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/src/Lens/Micro/Internal.hs 
new/microlens-0.4.10/src/Lens/Micro/Internal.hs
--- old/microlens-0.4.9.1/src/Lens/Micro/Internal.hs    2018-03-09 
11:39:19.000000000 +0100
+++ new/microlens-0.4.10/src/Lens/Micro/Internal.hs     2018-11-03 
12:52:00.000000000 +0100
@@ -15,7 +15,7 @@
 
 {- |
 Module      :  Lens.Micro.Internal
-Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom
+Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom Kazak, 2018 
Monadfix
 License     :  BSD-style (see the file LICENSE)
 
 This module is needed to give other packages from the microlens family (like 
<http://hackage.haskell.org/package/microlens-ghc microlens-ghc>) access to 
functions and classes that don't need to be exported from "Lens.Micro" (because 
they just clutter the namespace). Also:
@@ -170,6 +170,9 @@
 ( .# ) pbc _ = unsafeCoerce pbc
 #endif
 
+{-# INLINE ( #. ) #-}
+{-# INLINE ( .# ) #-}
+
 infixr 9 #.
 infixl 8 .#
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/src/Lens/Micro/Type.hs 
new/microlens-0.4.10/src/Lens/Micro/Type.hs
--- old/microlens-0.4.9.1/src/Lens/Micro/Type.hs        2018-03-09 
11:39:19.000000000 +0100
+++ new/microlens-0.4.10/src/Lens/Micro/Type.hs 2018-09-29 21:21:47.000000000 
+0200
@@ -5,7 +5,7 @@
 
 {- |
 Module      :  Lens.Micro.Type
-Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom
+Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom Kazak, 2018 
Monadfix
 License     :  BSD-style (see the file LICENSE)
 
 This module provides just the types ('Lens', 'Traversal', etc). It's needed to 
break the dependency cycle – "Lens.Micro" depends on "Lens.Micro.Internal", but 
"Lens.Micro.Internal" needs types like 'Lens', so 'Lens' can't be defined in 
"Lens.Micro".
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/microlens-0.4.9.1/src/Lens/Micro.hs 
new/microlens-0.4.10/src/Lens/Micro.hs
--- old/microlens-0.4.9.1/src/Lens/Micro.hs     2018-03-24 14:17:31.000000000 
+0100
+++ new/microlens-0.4.10/src/Lens/Micro.hs      2018-11-03 12:51:53.000000000 
+0100
@@ -11,7 +11,7 @@
 
 {- |
 Module      :  Lens.Micro
-Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom
+Copyright   :  (C) 2013-2016 Edward Kmett, 2015-2016 Artyom Kazak, 2018 
Monadfix
 License     :  BSD-style (see the file LICENSE)
 
 This module provides the essential functionality. There are other packages in 
the microlens family – mix and match them at will. If you're writing an app, 
you want <http://hackage.haskell.org/package/microlens-platform 
microlens-platform> – it provides the most functionality.
@@ -38,7 +38,7 @@
   -- $setters-note
   ASetter, ASetter',
   sets,
-  (%~), over,
+  (%~), over, (+~), (-~),
   (<>~),
   (.~), set,
   (?~),
@@ -303,6 +303,53 @@
 over l f = runIdentity #. l (Identity #. f)
 {-# INLINE over #-}
 
+
+-- | Increment the target(s) of a numerically valued 'Lens' or 'Traversal'.
+--
+-- >>> (a,b) & _1 +~ c
+-- (a + c,b)
+--
+-- >>> (a,b) & both +~ c
+-- (a + c,b + c)
+--
+-- >>> (1,2) & _2 +~ 1
+-- (1,3)
+--
+-- >>> [(a,b),(c,d)] & traverse.both +~ e
+-- [(a + e,b + e),(c + e,d + e)]
+--
+-- @
+-- ('+~') :: 'Num' a => 'Lens'' s a      -> a -> s -> s
+-- ('+~') :: 'Num' a => 'Traversal'' s a -> a -> s -> s
+-- @
+(+~) :: Num a => ASetter s t a a -> a -> s -> t
+l +~ n = over l (+ n)
+{-# INLINE (+~) #-}
+
+-- | Decrement the target(s) of a numerically valued 'Lens', or 'Traversal'.
+--
+-- >>> (a,b) & _1 -~ c
+-- (a - c,b)
+--
+-- >>> (a,b) & both -~ c
+-- (a - c,b - c)
+--
+-- >>> _1 -~ 2 $ (1,2)
+-- (-1,2)
+--
+-- >>> mapped.mapped -~ 1 $ [[4,5],[6,7]]
+-- [[3,4],[5,6]]
+--
+-- @
+-- ('-~') :: 'Num' a => 'Lens'' s a      -> a -> s -> s
+-- ('-~') :: 'Num' a => 'Traversal'' s a -> a -> s -> s
+-- @
+(-~) :: Num a => ASetter s t a a -> a -> s -> t
+l -~ n = over l (subtract n)
+{-# INLINE (-~) #-}
+
+
+
 {- |
 ('<>~') appends a value monoidally to the target.
 


Reply via email to