Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Bifunctor p => Assoc p where Source #
"Semigroup-y" Bifunctor
s.
assoc
.unassoc
=id
unassoc
.assoc
=id
assoc
.bimap
(bimap
f g) h =bimap
f (bimap
g h) .assoc
This library doesn't provide Monoidal
class, with left and right unitors.
Are they useful in practice?