Path to this page:
./
devel/hs-indexed-traversable,
FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
Branch: CURRENT,
Version: 0.1.3nb2,
Package name: hs-indexed-traversable-0.1.3nb2,
Maintainer: phoThis 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.
Master sites:
Filesize: 9.594 KB
Version history: (Expand)
- (2024-05-09) Updated to version: hs-indexed-traversable-0.1.3nb2
- (2023-11-02) Updated to version: hs-indexed-traversable-0.1.3nb1
- (2023-10-27) Updated to version: hs-indexed-traversable-0.1.3
- (2023-10-09) Updated to version: hs-indexed-traversable-0.1.2nb4
- (2023-02-09) Updated to version: hs-indexed-traversable-0.1.2nb3
- (2022-02-26) Updated to version: hs-indexed-traversable-0.1.2nb2
CVS history: (Expand)