indexed-traversable
FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
This package provides three useful generalizations: @ class Functor f => FunctorWithIndex i f | f -> i where \ imap :: (i -> a -> b) -> f a -> f b @ @ class Foldable f => FoldableWithIndex i f | f -> i where \ ifoldMap :: Monoid m => (i -> a -> m) -> f a -> m @ @ class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i t | t -> i where \ itraverse :: Applicative f => (i -> a -> f b) -> t a -> f (t b) @ This package contains instances for types in GHC boot libraries. For some additional instances see [indexed-traversable-instances](https://hackage.haskell.org/package/indexed-traversable-instances). The [keys](https://hackage.haskell.org/package/keys) package provides similar functionality, but uses (associated) @TypeFamilies@ instead of @FunctionalDependencies@.
- array >=0.3.0.2 && <0.6
- base >=4.12 && <4.23
- containers >=0.6.0.1 && <0.9
- transformers >=0.5.6.0 && <0.7
- foldable1-classes-compat >=0.1 && <0.2
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2.1
- 0.1.2
- 0.1.1
- 0.1