lens-family-core 1.1.0 → 1.2.0
raw patch · 3 files changed
+8/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG +4/−0
- lens-family-core.cabal +1/−1
- src/Lens/Family.hs +3/−3
CHANGELOG view
@@ -1,3 +1,7 @@+1.2.0 (Changes from 1.1.0)+=========================+* Corrected associativity of ^. ^.. and ^? from right to left.+ 1.1.0 (Changes from 1.0.1) ========================= * Some type synonym definitions have been altered, but should be equivalent.
lens-family-core.cabal view
@@ -1,6 +1,6 @@ name: lens-family-core category: Data, Lenses-version: 1.1.0+version: 1.2.0 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE
src/Lens/Family.hs view
@@ -242,7 +242,7 @@ -- Returns true if the number of references in the input is zero. nullOf l = allOf l (const False) -infixr 8 ^.+infixl 8 ^. (^.) :: a -> FoldLike b a a' b b' -> b -- ^ @@@ -258,7 +258,7 @@ -- Access the monoidal summary referenced by a getter or lens. x^.l = getConstant $ l Constant x -infixr 8 ^..+infixl 8 ^.. (^..) :: a -> FoldLike [b] a a' b b' -> [b] -- ^ @@@ -268,7 +268,7 @@ -- Returns a list of all of the referenced values in order. x^..l = toListOf l x -infixr 8 ^?+infixl 8 ^? (^?) :: a -> FoldLike (First b) a a' b b' -> Maybe b -- ^ @