packages feed

lens 3.7.5 → 3.7.6

raw patch · 3 files changed

+10/−2 lines, 3 filesdep ~base

Dependency ranges changed: base

Files

CHANGELOG.markdown view
@@ -1,3 +1,11 @@+3.7.6 [maintenance release]+-----+* Fixed an issue with the `Complex` `Each` instance.++3.7.5 [maintenance release]+-----+* Fixed an errant `LANGUAGE` pragma+ 3.7.4 [maintenance release] ----- * Backported the API for `ALens` and `ALens'` to support `snap` builds on old platforms.
lens.cabal view
@@ -1,6 +1,6 @@ name:          lens category:      Data, Lenses-version:       3.7.5+version:       3.7.6 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE
src/Control/Lens/Each.hs view
@@ -118,7 +118,7 @@   each = Lens.indexed $ \ f ~(a,b,c,d,e,g,h,i,j) -> (,,,,,,,,) <$> f (0 :: Int) a <*> f 1 b <*> f 2 c <*> f 3 d <*> f 4 e <*> f 5 g <*> f 6 h <*> f 7 i <*> f 8 j   {-# INLINE each #-} -#if MIN_VERSION_base(4,4,0)+#if !(MIN_VERSION_base(4,4,0)) instance (RealFloat a, RealFloat b) => Each Int (Complex a) (Complex b) a b where   each = Lens.indexed $ \ f (a :+ b) -> (:+) <$> f (0 :: Int) a <*> f 1 b   {-# INLINE each #-}