diff options
author | panne <unknown> | 2005-01-16 12:58:08 +0000 |
---|---|---|
committer | panne <unknown> | 2005-01-16 12:58:08 +0000 |
commit | efb81da9576a5b4b9befab399a13efbb563b0f36 (patch) | |
tree | a65d52942a25ebb6dca90223454a1cc43620e00f /src/Map.hs | |
parent | 6ab20e84e1e6b1e8b97466753673ce3a875152f8 (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.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |