Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit fa7c0c8

Browse files
authored
Merge pull request #90 from rightfold/unions-foldable
Generalize StrMap.unions to Foldable
2 parents ed78001 + 4d4cac1 commit fa7c0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/StrMap.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ union :: forall a. StrMap a -> StrMap a -> StrMap a
228228
union m = mutate (\s -> void $ foldM SM.poke s m)
229229

230230
-- | Compute the union of a collection of maps
231-
unions :: forall a. L.List (StrMap a) -> StrMap a
231+
unions :: forall f a. Foldable f => f (StrMap a) -> StrMap a
232232
unions = foldl union empty
233233

234234
foreign import _mapWithKey :: forall a b. Fn2 (StrMap a) (String -> a -> b) (StrMap b)

0 commit comments

Comments
 (0)