assoc

swap and assoc: Symmetric and Semigroupy Bifunctors

Version on this page:1.0.2@rev:4
LTS Haskell 22.29:1.1.1
Stackage Nightly 2024-07-20:1.1.1
Latest on Hackage:1.1.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.2@sha256:9decd0933cb6b903a40a8ace02d634bf90048ee2e5b0a514dccad7056c041881,1253

Module documentation for 1.0.2

Used by 4 packages in lts-20.24(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.2

  • Add ‘Swap’ instances for more n-tuples

1.0.1

  • Add Assoc Const and Tagged instances