semialign-optics: SemialignWithIndex, i.e. izipWith and ialignWith

[ bsd3, data, library, these ] [ Propose Tags ]

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.

Versions [faq] 1.1
Change log CHANGELOG.md
Dependencies base (>=4.5.1.0 && <4.14), containers (>=0.4.2.1 && <0.7), hashable (>=1.2.7.0 && <1.4), optics-extra (==0.2.*), semialign (==1.1.*), these (>=1 && <1.1), transformers (>=0.3.0.0 && <0.6), transformers-compat (>=0.6.5 && <0.7), unordered-containers (>=0.2.8.0 && <0.3), vector (>=0.12.0.2 && <0.13) [details]
License BSD-3-Clause
Author C. McCann, Oleg Grenrus
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Category Data, These
Home page https://github.com/isomorphism/these
Source repo head: git clone https://github.com/isomorphism/these.git
Uploaded by phadej at Mon Oct 21 10:45:46 UTC 2019
Distributions NixOS:1.1
Downloads 49 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-10-21 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees