assoc: swap and assoc: Symmetric and Semigroupy Bifunctors
Provides generalisations of
swap :: (a,b) -> (b,a)
and
assoc :: ((a,b),c) -> (a,(b,c))
to
Bifunctor
s supporting similar operations (e.g. Either
, These
).
Versions [faq] | 1, 1.0.1 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.3 && <4.14), bifunctors (>=5.5.5 && <5.6), tagged (>=0.8.6 && <0.9) [details] |
License | BSD-3-Clause |
Author | Oleg Grenrus <oleg.grenrus@iki.fi> |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Category | Data |
Source repo | head: git clone https://github.com/phadej/assoc.git |
Uploaded | by phadej at Thu Nov 7 19:34:11 UTC 2019 |
Distributions | NixOS:1.0.1, Stackage:1 |
Downloads | 1166 total (195 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2019-11-07 [all 1 reports] |
Downloads
- assoc-1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)