ekmett / bifunctors

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

Make Biapplicative instances for tuples lazy #96

Closed treeowl closed 3 years ago

treeowl commented 3 years ago

Previously, <<*>> and biliftA2 were strict in their tuple arguments. Unfortunately, the Bifunctor instances (defined in base), are lazy in their tuple arguments. This inconsistency made tuples utterly useless for Biapplicative traversals. Make <<*>> and biliftA2 lazy for tuples.