Skip to content

traverseWithIndex_ for Seq #840

Closed
Closed
@sjakobi

Description

@sjakobi

…would be nice to have.

dhall previously used Data.Foldable.sequenceA_ (Data.Sequence.mapWithIndex f xs), but this is not optimal because it the result of mapWithIndex is materialized before being reduced by sequenceA_.

dhall-lang/dhall-haskell#2423 switches dhall to use itraverse_ from indexed-traversable which has a nice implementation in terms of Data.Sequence.foldMapWithIndex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions