assoc

swap and assoc: Symmetric and Semigroupy Bifunctors

LTS Haskell 19.7:1.0.2@rev:2
Stackage Nightly 2022-05-14:1.0.2@rev:2
Latest on Hackage:1.0.2@rev:2

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:e0d9d1febc172e2a1b22aacd25df7f90be557dcf12ff87359f43128f8c194d9e,1237

Module documentation for 1.0.2

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