Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings revealed by PS v0.14.1 release #131

Merged
merged 4 commits into from
May 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ Notable changes to this project are documented in this file. The format is based
Breaking changes:

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

Bugfixes:

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

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

Expand Down
4 changes: 2 additions & 2 deletions src/Data/Lens/Fold.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Data.Lens.Fold
, maximumOf, minimumOf, allOf, anyOf, andOf, orOf, elemOf, notElemOf, sumOf
, productOf, lengthOf, findOf, sequenceOf_, traverseOf_, has, hasn't
, replicated, filtered, folded, unfolded, toArrayOf, toArrayOfOn
, ifoldMapOf, ifoldrOf, ifoldlOf, iallOf, ianyOf, itoListOf, itraverseOf_
, ifoldMapOf, ifoldrOf, ifoldlOf, iallOf, ianyOf, ifindOf, itoListOf, itraverseOf_, iforOf_
, module ExportTypes
)
where
Expand Down Expand Up @@ -178,7 +178,7 @@ filtered f =
replicated :: forall a b t r. Monoid r => Int -> Fold r a b a t
replicated i (Forget a) = Forget (go i a)
where
go 0 x = mempty
go 0 _ = mempty
go n x = x <> go (n - 1) x

-- | Folds over a `Foldable` container.
Expand Down
1 change: 1 addition & 0 deletions src/Data/Lens/Traversal.purs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module Data.Lens.Traversal
, failover
, elementsOf
, itraverseOf
, iforOf
, cloneTraversal
, module ExportTypes
) where
Expand Down