Deprecated

In favour of

semialign-indexed

SemialignWithIndex, i.e. izipWith and ialignWith

https://github.com/isomorphism/these

Version on this page:1.1@rev:2
LTS Haskell 20.26:1.2@rev:1
Stackage Nightly 2023-04-25:1.2@rev:1
Latest on Hackage:1.2@rev:1

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:fbe2f73c15a522aaba5768f4cb359d262cefc9f96604ba72088ca5b3aaadbb6e,2065

Module documentation for 1.1

Used by 1 package in nightly-2020-06-22(full list with versions):

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 https://hackage.haskell.org/package/semialign-optics for optics variant.

Changes

1.1

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

1

Split out of these package.