Closed solomon-b closed 2 years ago
They come from the Data.Bifoldable haddocks.
There is one more law I forget to include:
bifoldMap f g = bifold . bimap f g
This is only relevant if you have a Bifunctor. Would we put it in a separate test?
There is one more law I forget to include:
bifoldMap f g = bifold . bimap f g
This is only relevant if you have a Bifunctor. Would we put it in a separate test?
Yes, we can add this in the style of the existing foldableFunctor
test.
Regarding compatibility with GHC 7.10 and 8.0, I'll try to drop support for these soon, so we can merge your PRs without breaking CI.
Could you rebase?
Could you rebase?
done!
Resolves issue #48. We could reduce the number of type parameters by merging
c
andm
, but I didn't want it to appear thatbifoldr f g z t ≡ appEndo (bifoldMap (Endo . f) (Endo . g) t) z
requires a monoid onc