ekmett / bifunctors

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

Revisit tuples #94

Closed treeowl closed 3 years ago

treeowl commented 3 years ago
treeowl commented 3 years ago

Question: should Stricter and Lazier have Bifoldable, Foldable, Bitraversable, and/or Traversable instances? The Foldable and Bifoldable ones are trivial, albeit verbose. What about traversals? It's much less obvious to me what those are supposed to look like.

treeowl commented 3 years ago

Another question: If base adds a Functor constraint to Bifunctor, will it harmonize the Functor and Bifunctor instances, or are those doomed to be forever mismatched?

treeowl commented 3 years ago

Oh, I guess the traversals are dead simple too, but I'm not sure we really want them. Any thoughts?

treeowl commented 3 years ago

Hmm... Not sure why this is struggling to build. But I'm thinking maybe most of this PR doesn't belong in this package.