ekmett / bifunctors

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

Define Functor/Foldable/Traversable instances for Sum/Product #109

Closed RyanGlScott closed 1 year ago

RyanGlScott commented 1 year ago

These are necessary to deal with Bifunctor, Bifoldable, and Bitraversable gaining quantified superclasses in upcoming versions of GHC.

This is a partial backport of https://github.com/ekmett/bifunctors/commit/36768bc565092b4052cf6b3bd5e1b12ffeb135bd.


This also backports the commit Define missing Functor/Foldable/Traversable instances in the test suite from #108, which will be necessary to make the test suite typecheck after the aforementioned quantified superclasses are added.