jcpetruzza / barbies

BSD 3-Clause "New" or "Revised" License
92 stars 15 forks source link

Add flipped-argument versions of traverse-style functions #48

Closed JackKelly-Bellroy closed 8 months ago

JackKelly-Bellroy commented 8 months ago

Data.Traversable has for = flip traverse, which is very useful when then traversing function is a large lambda and can hang off to the right of an expression. This PR adds for variants for every traverse-style function where it appears to make sense. They're more important in this library than in base, actually, because it's harder to get things like fliip btraverse to typecheck on HKD than the equivalent on a regular Traversable.

jcpetruzza commented 8 months ago

Great, thanks! I'll be making a release with this soon

jcpetruzza commented 8 months ago

Included in 2.1.0.0