Skip to content

Commit f7273d1

Browse files
Morten Kolstadm-renaud
Morten Kolstad
authored andcommitted
Updated Set.unions documentation to mention Foldable instead of list (#585)
The previous documentation for unions said that you need a list of sets, but the type says that it can be any Foldable structure: unions :: (Foldable f, Ord a) => f (Set a) -> Set a Changed the wording to "The union of the sets in a Foldable structure".
1 parent 36bff81 commit f7273d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Set/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ deleteMax Tip = Tip
706706
{--------------------------------------------------------------------
707707
Union.
708708
--------------------------------------------------------------------}
709-
-- | The union of a list of sets: (@'unions' == 'foldl' 'union' 'empty'@).
709+
-- | The union of the sets in a Foldable structure : (@'unions' == 'foldl' 'union' 'empty'@).
710710
unions :: (Foldable f, Ord a) => f (Set a) -> Set a
711711
unions = Foldable.foldl' union empty
712712
#if __GLASGOW_HASKELL__

0 commit comments

Comments
 (0)