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

Equivalent to Control.Lens.Indexed.indexing? #511

Open
endgame opened this issue Dec 27, 2024 · 0 comments
Open

Equivalent to Control.Lens.Indexed.indexing? #511

endgame opened this issue Dec 27, 2024 · 0 comments

Comments

@endgame
Copy link

endgame commented Dec 27, 2024

Amazonka is replacing its lens dependency with microlens-* dependencies. As part of this, objectKey_keyComponents from amazonka-s3 no longer returns IndexedTraversal' Int ObjectKey Text but instead returns Traversal' ObjectKey Text. For lens users, we can direct them to Control.Lens.Indexed.indexing, and I can find the VL version in optics-core, but I can't find an optics version.

The closest thing I can find in the public interface is elementsOf, which calls indexed internally. Should I just direct my users to use elementsOf (const True) or am I missing something simple? itraversalVL . indexing requires importing indexing from Optics.Internal.Indexed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant