Ticket #2644: IntMap_intersectionWith.patch

File IntMap_intersectionWith.patch, 1.1 KB (added by sedillard, 6 years ago)
Line 
1
2New patches:
3
4[correct type for IntMap.intersectionWith[Key]
5sedillard@gmail.com**20081002144828] {
6hunk ./Data/IntMap.hs 791
7-intersectionWith :: (a -> b -> a) -> IntMap a -> IntMap b -> IntMap a
8+intersectionWith :: (a -> b -> c) -> IntMap a -> IntMap b -> IntMap c
9hunk ./Data/IntMap.hs 800
10-intersectionWithKey :: (Key -> a -> b -> a) -> IntMap a -> IntMap b -> IntMap a
11+intersectionWithKey :: (Key -> a -> b -> c) -> IntMap a -> IntMap b -> IntMap c
12}
13
14Context:
15
16[export Data.Map.toDescList, foldlWithKey, and foldrWithKey (trac ticket 2580)
17qdunkan@gmail.com**20080922213200
18 
19 toDescList was previously implemented, but not exported.
20 
21 foldlWithKey was previously implemented, but not exported.  It can be used to
22 implement toDescList.
23 
24 foldrWithKey is already exported as foldWithKey, but foldrWithKey is explicitly
25 the mirror of foldlWithKey, and foldWithKey kept for compatibility.
26]
27[Bump version number to 0.2.0.0
28Ian Lynagh <igloo@earth.li>**20080920160016]
29[TAG 6.10 branch has been forked
30Ian Lynagh <igloo@earth.li>**20080919123438]
31Patch bundle hash:
321583adb588e42b2a1c12d3097e3bd4d5478a7b92