Skip to content

Commit 49011a7

Browse files
Fix warnings revealed by PS v0.14.1 release (#131)
* Fix warnings revealed by PS v0.14.1 * Export ifindOf and iforOf_ * Update changelog * Also export iforOf
1 parent d09510b commit 49011a7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ Notable changes to this project are documented in this file. The format is based
77
Breaking changes:
88

99
New features:
10+
- Export `ifindOf`, `iforOf`, and `iforOf_` implemented in #66 by @Rufflewind and #21 by @zrho (#131 by @JordanMartinez)
1011

1112
Bugfixes:
1213

1314
Other improvements:
15+
- Fix warnings revealed by PS v0.14.1 (#131 by @JordanMartinez)
1416

1517
## [v7.0.0](https://github.com/purescript-contrib/purescript-profunctor-lenses/releases/tag/v7.0.0) - 2021-02-26
1618

src/Data/Lens/Fold.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Data.Lens.Fold
66
, maximumOf, minimumOf, allOf, anyOf, andOf, orOf, elemOf, notElemOf, sumOf
77
, productOf, lengthOf, findOf, sequenceOf_, traverseOf_, has, hasn't
88
, replicated, filtered, folded, unfolded, toArrayOf, toArrayOfOn
9-
, ifoldMapOf, ifoldrOf, ifoldlOf, iallOf, ianyOf, itoListOf, itraverseOf_
9+
, ifoldMapOf, ifoldrOf, ifoldlOf, iallOf, ianyOf, ifindOf, itoListOf, itraverseOf_, iforOf_
1010
, module ExportTypes
1111
)
1212
where
@@ -178,7 +178,7 @@ filtered f =
178178
replicated :: forall a b t r. Monoid r => Int -> Fold r a b a t
179179
replicated i (Forget a) = Forget (go i a)
180180
where
181-
go 0 x = mempty
181+
go 0 _ = mempty
182182
go n x = x <> go (n - 1) x
183183

184184
-- | Folds over a `Foldable` container.

src/Data/Lens/Traversal.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Data.Lens.Traversal
2525
, failover
2626
, elementsOf
2727
, itraverseOf
28+
, iforOf
2829
, cloneTraversal
2930
, module ExportTypes
3031
) where

0 commit comments

Comments
 (0)