I'm looking for a function in the standard library with a signature similar to this one:
Traversable f => f (Either e a) -> Either [e] (f a)
Or maybe something like this:
(Traversable f, Monoid e) => f (Either e a) -> Either e (f a)
The idea is to collect the errors instead of failing when the first error is encountered.
I saw that my function looked very much like sequence and I was hoping that there was already a typeclass that modelled this pattern.
=>mean?