aboutsummaryrefslogtreecommitdiff
path: root/src/Map.hs
diff options
context:
space:
mode:
authorpanne <unknown>2005-01-16 12:58:08 +0000
committerpanne <unknown>2005-01-16 12:58:08 +0000
commitefb81da9576a5b4b9befab399a13efbb563b0f36 (patch)
treea65d52942a25ebb6dca90223454a1cc43620e00f /src/Map.hs
parent6ab20e84e1e6b1e8b97466753673ce3a875152f8 (diff)
[haddock @ 2005-01-16 12:58:03 by panne]
Correctly handle the new order of arguments for the combining function given to fromListWith.
Diffstat (limited to 'src/Map.hs')
-rw-r--r--src/Map.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Map.hs b/src/Map.hs
index 27f30569..64d28df0 100644
--- a/src/Map.hs
+++ b/src/Map.hs
@@ -56,7 +56,7 @@ fromList :: Ord k => [(k,a)] -> Map k a
fromList = listToFM
fromListWith :: Ord k => (a -> a -> a) -> [(k,a)] -> Map k a
-fromListWith = flip addListToFM_C emptyFM
+fromListWith c = addListToFM_C (flip c) emptyFM
toAscList :: Map k a -> [(k,a)]
toAscList = fmToList