Skip to content

instances for other Integral indexes? #15

@aryairani

Description

@aryairani

We have some Word64-indexed types, and having to scatter fromIntegral all over to compensate outweighs the convenience of using like ifor_ f xs over for_ f (xs `zip` [0..]) in a smaller number spots.

WDYT about replacing instance FunctorWithIndex Int [] with instance Integral i => FunctorWithIndex i [], and so on?

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