devel/hs-indexed-traversable 0.1.4nb3 NetBSD
FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- 2-clause-bsd
- Categories
- devel
- Package size
- 313.9 KiB, 4491.1 KiB installed
Description
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.
Install
Binary package:
pkgin install hs-indexed-traversable
From pkgsrc:
cd /usr/pkgsrc/devel/hs-indexed-traversable && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.1.4nb3 |
| NetBSD 10.1 aarch64 | 0.1.4nb3 |
| SmartOS / illumos x86_64 | 0.1.4nb3 |
| macOS 15 arm64 | 0.1.4nb3 |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.