ekmett / adjunctions

Simple adjunctions
http://hackage.haskell.org/package/adjunctions
Other
44 stars 27 forks source link

Remove cotraverse1 and distribute1 methods #61

Open treeowl opened 5 years ago

treeowl commented 5 years ago

Fixes #62

treeowl commented 5 years ago

@aaronvargo, I would appreciate your input on this. Also: I'm not totally convinced that we win anything by making collect1 a class method rather than just a function. Do you know of a case where we do? If not, I'd be very tempted to remove it for now.

treeowl commented 5 years ago

Please DO NOT SQUASH. I've broken this PR into one commit that creates Data.Functor.Rep.Internal and a separate one that actually makes substantive changes.

treeowl commented 5 years ago

What's the right way to fix things so git recognizes that first thing as a move? I don't want to get all the git blame for the whole module.

treeowl commented 4 years ago

One potentially controversial point: the new Functor instance for Co will be bad if the Representable instance doesn't define cotraverseMap1.

treeowl commented 4 years ago

(But I think that's okay; Co is presumably mostly for DerivingVia, and people are free not to use it if they don't want it.)