diff options
Diffstat (limited to 'lib/IntMapClass.hs')
-rw-r--r-- | lib/IntMapClass.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/IntMapClass.hs b/lib/IntMapClass.hs index b44e05c..05b390b 100644 --- a/lib/IntMapClass.hs +++ b/lib/IntMapClass.hs | |||
@@ -159,11 +159,11 @@ unionWith f = adaptm_m_m (IntMap.unionWith f) | |||
159 | unionWithKey :: Coercible Int k => (k -> a -> a -> a) -> IMap k a -> IMap k a -> IMap k a | 159 | unionWithKey :: Coercible Int k => (k -> a -> a -> a) -> IMap k a -> IMap k a -> IMap k a |
160 | unionWithKey f = adaptm_m_m (IntMap.unionWithKey $ f . coerce) | 160 | unionWithKey f = adaptm_m_m (IntMap.unionWithKey $ f . coerce) |
161 | 161 | ||
162 | -- unions :: Coercible [IMap k a] [IntMap a] => [IMap k a] -> IMap k a | 162 | unions :: Coercible [IMap k a] [IntMap a] => [IMap k a] -> IMap k a |
163 | -- unions ms = IMap $ IntMap.unions (coerce ms) | 163 | unions ms = IMap $ IntMap.unions (coerce <$> ms) |
164 | 164 | ||
165 | -- unionsWith :: Coercible [IMap k a] [IntMap a] => (a->a->a) -> [IMap k a] -> IMap k a | 165 | unionsWith :: Coercible [IMap k a] [IntMap a] => (a->a->a) -> [IMap k a] -> IMap k a |
166 | -- unionsWith f ms = IMap $ IntMap.unionsWith f (coerce ms) | 166 | unionsWith f ms = IMap $ IntMap.unionsWith f (coerce <$> ms) |
167 | 167 | ||
168 | difference :: IMap k b -> IMap k b -> IMap k b | 168 | difference :: IMap k b -> IMap k b -> IMap k b |
169 | difference = adaptm_m_m IntMap.difference | 169 | difference = adaptm_m_m IntMap.difference |