HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesemialign-1.3.1Haskell2010

Data.Semialign.Indexed

Zipping and aligning of indexed functors.

  • 3 classes
  • Packagesemialign-1.3.1
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIndexed.hs
classclass (FunctorWithIndex i f, Semialign f) => SemialignWithIndex i (f :: Type -> Type) | f -> i where
#

Indexed version of Semialign.

Methods

Instances15SemialignWithIndex, …
classclass (SemialignWithIndex i f, Zip f) => ZipWithIndex i (f :: Type -> Type) | f -> i where
#

Indexed version of Zip.

Methods

  • izipWith :: (i -> a -> b -> c) -> f a -> f b -> f c

    Analogous to zipWith, but also provides an index.

Instances15ZipWithIndex, …
classclass (ZipWithIndex i f, Repeat f) => RepeatWithIndex i (f :: Type -> Type) | f -> i where
#

Indexed version of Repeat.

Methods

  • irepeat :: (i -> a) -> f a

    Analogous to repeat, but also provides an index.

    This should be the same as tabulate for representable functors.

Instances10RepeatWithIndex, …