summaryrefslogtreecommitdiff
path: root/lib/IntMapClass.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IntMapClass.hs')
-rw-r--r--lib/IntMapClass.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IntMapClass.hs b/lib/IntMapClass.hs
index 05b390b..5f113bf 100644
--- a/lib/IntMapClass.hs
+++ b/lib/IntMapClass.hs
@@ -159,10 +159,10 @@ unionWith f = adaptm_m_m (IntMap.unionWith f)
159unionWithKey :: Coercible Int k => (k -> a -> a -> a) -> IMap k a -> IMap k a -> IMap k a 159unionWithKey :: Coercible Int k => (k -> a -> a -> a) -> IMap k a -> IMap k a -> IMap k a
160unionWithKey f = adaptm_m_m (IntMap.unionWithKey $ f . coerce) 160unionWithKey f = adaptm_m_m (IntMap.unionWithKey $ f . coerce)
161 161
162unions :: Coercible [IMap k a] [IntMap a] => [IMap k a] -> IMap k a 162unions :: Coercible k Int => [IMap k a] -> IMap k a
163unions ms = IMap $ IntMap.unions (coerce <$> ms) 163unions ms = IMap $ IntMap.unions (coerce <$> ms)
164 164
165unionsWith :: Coercible [IMap k a] [IntMap a] => (a->a->a) -> [IMap k a] -> IMap k a 165unionsWith :: Coercible k Int => (a->a->a) -> [IMap k a] -> IMap k a
166unionsWith f ms = IMap $ IntMap.unionsWith f (coerce <$> ms) 166unionsWith f ms = IMap $ IntMap.unionsWith f (coerce <$> ms)
167 167
168difference :: IMap k b -> IMap k b -> IMap k b 168difference :: IMap k b -> IMap k b -> IMap k b