This hopefully isn't too controversial since this is the natural Monoid for the underlying function; in fact you could deriving via (a -> r) if you wanted.
Adding this allows us to smash together Folds with profunctor optics; e.g. you get (x ^.. to f <> to g) == [f x, g x] which is nice, and this instance just generally does the Right Thingโข when working with Forget ๐
Let me know if there's anything else you need ๐
Thanks for maintaining this library; it's taught me a lot over the years!
This hopefully isn't too controversial since this is the natural Monoid for the underlying function; in fact you could
deriving via (a -> r)
if you wanted.Adding this allows us to smash together Folds with profunctor optics; e.g. you get
(x ^.. to f <> to g) == [f x, g x]
which is nice, and this instance just generally does the Right Thingโข when working with Forget ๐Let me know if there's anything else you need ๐
Thanks for maintaining this library; it's taught me a lot over the years!