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

Johannes Waldmann johannes.waldmann at
Sat Feb 3 12:42:48 UTC 2018

Dear Libraries,

I propose this change for containers:

have:  unions ::               [ Set a ] -> Set a
want:  unions :: Foldable f => f (Set a) -> Set a

and similar for unions in IntSet, Map, IntMap.

Since this affects the public API,
contributor guidelines require to go through this mailing list.


NB: the only other places in Data.Set (etc.)
where a list occurs in an argument position
are the  from*List[With]  functions.

- J.W.

More information about the Libraries mailing list