assoc

swap and assoc: Symmetric and Semigroupy Bifunctors

Version on this page:1
LTS Haskell 22.14:1.1@rev:1
Stackage Nightly 2024-03-28:1.1@rev:1
Latest on Hackage:1.1@rev:1

See all snapshots assoc appears in

BSD-3-Clause licensed and maintained by Oleg Grenrus
This version can be pinned in stack with:assoc-1@sha256:a7021d3331924f68897d95dfb39b562c2296e54ffab9d1d1956e06fe4d95eed4,964

Module documentation for 1

Depends on 2 packages(full list with versions):
Used by 1 package in nightly-2019-07-27(full list with versions):

Provides generalisations of swap :: (a,b) -> (b,a) and assoc :: ((a,b),c) -> (a,(b,c)) to Bifunctors supporting similar operations (e.g. Either, These).