generalize type of Data.Set.unions from List to Foldable

Henning Thielemann lemming at henning-thielemann.de
Sat Feb 3 14:42:17 UTC 2018


On Sat, 3 Feb 2018, Johannes Waldmann wrote:

> I propose this change for containers:
>
> have:  unions ::               [ Set a ] -> Set a
> want:  unions :: Foldable f => f (Set a) -> Set a

That's Foldable.fold.


More information about the Libraries mailing list