Package Info

ghc-indexed-traversable


FunctorWithIndex, FoldableWithIndex, TraversableWithIndex


Unspecified

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.

The keys package provides similar functionality, but uses (associated) 'TypeFamilies' instead of 'FunctionalDependencies'.


License: BSD-2-Clause
URL: https://hackage.haskell.org/package/indexed-traversable

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.3-150500.3.3.1 info SUSE-SLE-Module-Packagehub-Subpackages-15-SP5-2024-572 2024-02-21 15 SP5 Subpackages Updates
  • x86-64
  • ghc-indexed-traversable
  • ghc-indexed-traversable-devel
0.1.2-bp154.1.11 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-indexed-traversable
  • ghc-indexed-traversable-devel