./devel/hs-indexed-traversable, FunctorWithIndex, FoldableWithIndex, TraversableWithIndex

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.1.3nb2, Package name: hs-indexed-traversable-0.1.3nb2, Maintainer: pho

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.


Master sites:

Filesize: 9.594 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-29 05:18:20 by Masatake Daimon | Files touched by this commit (1)
Log message:
devel/hs-indexed-traversable: Fix build with GHC 9.8

This breaks build with the currently default GHC 9.6. Please bear with me
until I switch the default compiler.
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-27 09:01:56 by Masatake Daimon | Files touched by this commit (4)
Log message:
devel/hs-indexed-traversable: Update to 0.1.3

0.1.3 [2023-10-04]
    Add Foldable1WithIndex1 type-class, an indexed version of Foldable1.
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2023-01-25 10:20:53 by Masatake Daimon | Files touched by this commit (2)
Log message:
devel/hs-indexed-traversable: Fix build with GHC 9.4
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
   2022-02-12 09:51:00 by Masatake Daimon | Files touched by this commit (575)
Log message:
revbump after changing the default Haskell compiler
   2022-02-11 10:21:05 by Masatake Daimon | Files touched by this commit (3)
Log message:
Update to indexed-traversable-0.1.2

0.1.2 [2021-10-30]

    Changed (<$>) + (<*>) to liftA2 to potentially avoid extra fmap.
    Add (#..), coercive composition after a 2-parameter function.
    Switched references to lens 'Of'- functions to base functions.

Thanks to wygulmage for contributions.