semialign-optics

SemialignWithIndex, i.e. izipWith and ialignWith https://github.com/isomorphism/these

Stackage Nightly 2019-12-10:1.1
Latest on Hackage:1.1

See all snapshots semialign-optics appears in

BSD-3-Clause licensed by C. McCann, Oleg Grenrus
Maintained by Oleg Grenrus

Module documentation for 1.1

This version can be pinned in stack with:semialign-optics-1.1@sha256:4b49270ff31c6bd28a73bc68f8732a1d6a6705d2d7a41e40edc0ac8906b2ebb5,1945

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

Changes

1.1

Initial release

comments powered byDisqus