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

Use indexed-traversable #951

Merged
merged 1 commit into from
Dec 16, 2020
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
10 changes: 10 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@
* Add `Control.Lens.Review.reviewing`, which is like `review` but with a more
polymorphic type.
* Mark `Control.Lens.Equality` as Trustworthy
* The `FunctorWithIndex`, `FoldableWithIndex` and `TraversableWithIndex` type classes
have been migrated to a new package, [`indexed-traversable`](https://hackage.haskell.org/package/indexed-traversable)

The `imapped`, `ifolded` and `itraversed` methods are now top-level functions.
If you are not defining these methods in your instances,
you don't need to change your definitions.

Beware: the `optics-core` package (versions <0.4) defines similar classes,
and will also migrate to use `indexed-traversable` classes. Therefore you
might get duplicate instance errors if your package defines both.

4.19.2 [2020.04.15]
-------------------
Expand Down
8 changes: 5 additions & 3 deletions lens.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ library
bifunctors >= 5.1 && < 6,
bytestring >= 0.10.4.0 && < 0.12,
call-stack >= 0.1 && < 0.3,
comonad >= 4 && < 6,
comonad >= 5.0.7 && < 6,
contravariant >= 1.3 && < 2,
containers >= 0.5.5.1 && < 0.7,
distributive >= 0.3 && < 1,
filepath >= 1.2.0.0 && < 1.5,
free >= 4 && < 6,
free >= 5.1.5 && < 6,
ghc-prim,
hashable >= 1.1.2.3 && < 1.4,
kan-extensions >= 5 && < 6,
Expand All @@ -217,7 +217,9 @@ library
transformers >= 0.3.0.0 && < 0.6,
transformers-compat >= 0.4 && < 1,
unordered-containers >= 0.2.4 && < 0.3,
vector >= 0.9 && < 0.13
vector >= 0.9 && < 0.13,
indexed-traversable >= 0.1 && < 0.2,
indexed-traversable-instances >= 0.1 && < 0.2

if !impl(ghc >= 8.0)
build-depends:
Expand Down
Loading