assoc

swap and assoc: Symmetric and Semigroupy Bifunctors

Version on this page:1.0.1
LTS Haskell 17.4:1.0.2
Stackage Nightly 2021-02-27:1.0.2@rev:1
Latest on Hackage:1.0.2@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.0.1@sha256:473125ac907b127e929351756ecac7afe4e9708fd64e5f3f042e9c7cb1c194b9,1166

Module documentation for 1.0.1

Used by 1 package in lts-14.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).

Changes

1.0.1

  • Add Assoc Const and Tagged instances