Skip to content

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

@endgame

Description

@endgame

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions