lens 3.9.0.3 → 3.9.1
raw patch · 3 files changed
+8/−8 lines, 3 filesdep ~splitPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: split
API changes (from Hackage documentation)
- Data.List.Split.Lens: condensing :: Lens' (Splitter a) Bool
+ Data.List.Split.Lens: condensing :: Lens' (Splitter a) CondensePolicy
Files
- CHANGELOG.markdown +4/−0
- lens.cabal +2/−2
- src/Data/List/Split/Lens.hs +2/−6
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+3.9.1+-----+* 'condensingPolicy' was updated to work with 'split' 0.2.2+ 3.9.0.3 ------- * Bumped dependency on `generic-deriving` again.
lens.cabal view
@@ -1,6 +1,6 @@ name: lens category: Data, Lenses-version: 3.9.0.3+version: 3.9.1 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE@@ -186,7 +186,7 @@ reflection >= 1.1.6 && < 2, semigroupoids >= 3.0.2 && < 4, semigroups >= 0.8.4 && < 1,- split >= 0.2 && < 0.2.2,+ split >= 0.2 && < 0.3, tagged >= 0.4.4 && < 1, template-haskell >= 2.4 && < 2.10, text >= 0.11 && < 0.12,
src/Data/List/Split/Lens.hs view
@@ -166,12 +166,8 @@ {-# INLINE delimiting #-} -- | Modify or retrieve the policy for what a 'Splitter' should about consecutive delimiters.-condensing :: Lens' (Splitter a) Bool-condensing f s@Splitter { condensePolicy = p } = f (o p) <&> \p' -> s { condensePolicy = i p' } where- i True = Condense- i False = KeepBlankFields- o Condense = True- o KeepBlankFields = False+condensing :: Lens' (Splitter a) CondensePolicy+condensing f s@Splitter { condensePolicy = p } = f p <&> \p' -> s { condensePolicy = p' } {-# INLINE condensing #-} -- | Modify or retrieve the policy for whether a 'Splitter' should drop an initial blank.