ekmett / bifunctors

Haskell 98 bifunctors, bifoldables and bitraversables
Other
57 stars 42 forks source link

Depend on assoc for instances #120

Closed phadej closed 1 year ago

phadej commented 1 year ago

assoc provides Bifunctor p => Swap p and Assoc p type-classes.

Currently assoc depends on bifunctors to provide instances for Flip, Biff etc types defined in bifunctors.

But now we have a light compatibility package bifunctor-classes-compat.

So I propose a following dependency rearrangement:

This will be breaking change in assoc but only a minor change in bifunctors.

How does this sound?

RyanGlScott commented 1 year ago

That sounds reasonable to me. Are you willing to help migrating the instances?

phadej commented 1 year ago

Sure. I'll prepare a patch shortly

phadej commented 1 year ago

Done in #121