In favour of


SemialignWithIndex, i.e. izipWith and ialignWith

Version on this page:1.1
LTS Haskell 17.9:1.1@rev:2
Stackage Nightly 2021-04-06:1.1@rev:2
Latest on Hackage:1.2

See all snapshots semialign-indexed appears in

BSD-3-Clause licensed by C. McCann, Oleg Grenrus
Maintained by Oleg Grenrus
This version can be pinned in stack with:semialign-indexed-1.1@sha256:bc375898351fea11ab3f4279844fcfc00aa42c90182eedfc28c4754098da3e0e,2026

Module documentation for 1.1

This package provides SemialignWithIndex with two members

class (FunctorWithIndex i f, Semialign f) => SemialignWithIndex i f | f -> i where
    ialignWith :: (i -> These a b -> c) -> f a -> f b -> f c
class (SemialignWithIndex i f, Zip f) => ZipWithIndex i f | f -> i where
    izipWith   :: (i -> a -> b -> c)    -> f a -> f b -> f c

Superclass FunctorWithIndex is from lens package. See for optics variant.



  • Split ZipWithIndex out of SemialignWithIndex
  • Compatible semialign-1.1.


Split out of these package.