@@ -1550,7 +1550,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
15501550 -- branch vs. branch
15511551 go s ! sz (BitmapIndexed b1 ary1) (BitmapIndexed b2 ary2) =
15521552 let b' = b1 .|. b2
1553- A. RunRes dsz ary' =
1553+ A. RunResA dsz ary' =
15541554 unionArrayByInternal sz
15551555 (go (s+ bitsPerSubkey))
15561556 b1
@@ -1559,7 +1559,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
15591559 ary2
15601560 in A. Sized dsz (bitmapIndexedOrFull b' ary')
15611561 go s ! sz (BitmapIndexed b1 ary1) (Full ary2) =
1562- let A. RunRes dsz ary' =
1562+ let A. RunResA dsz ary' =
15631563 unionArrayByInternal sz
15641564 (go (s+ bitsPerSubkey))
15651565 b1
@@ -1568,7 +1568,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
15681568 ary2
15691569 in A. Sized dsz (Full ary')
15701570 go s ! sz (Full ary1) (BitmapIndexed b2 ary2) =
1571- let A. RunRes dsz ary' =
1571+ let A. RunResA dsz ary' =
15721572 unionArrayByInternal sz
15731573 (go (s+ bitsPerSubkey))
15741574 fullNodeMask
@@ -1577,7 +1577,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
15771577 ary2
15781578 in A. Sized dsz (Full ary')
15791579 go s ! sz (Full ary1) (Full ary2) =
1580- let A. RunRes dsz ary' =
1580+ let A. RunResA dsz ary' =
15811581 unionArrayByInternal sz
15821582 (go (s+ bitsPerSubkey))
15831583 fullNodeMask
@@ -1590,7 +1590,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
15901590 | b1 .&. m2 == 0 = let ary' = A. insert ary1 i t2
15911591 b' = b1 .|. m2
15921592 in A. Sized sz (bitmapIndexedOrFull b' ary')
1593- | otherwise = let A. RunRes dsz ary' =
1593+ | otherwise = let A. RunResA dsz ary' =
15941594 A. updateWithInternal' ary1 i $ \ st1 ->
15951595 go (s+ bitsPerSubkey) sz st1 t2
15961596 in A. Sized dsz (BitmapIndexed b1 ary')
@@ -1602,7 +1602,7 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
16021602 | b2 .&. m1 == 0 = let ary' = A. insert ary2 i $! t1
16031603 b' = b2 .|. m1
16041604 in A. Sized sz (bitmapIndexedOrFull b' ary')
1605- | otherwise = let A. RunRes dsz ary'=
1605+ | otherwise = let A. RunResA dsz ary'=
16061606 A. updateWithInternal' ary2 i $ \ st2 ->
16071607 go (s+ bitsPerSubkey) sz t1 st2
16081608 in A. Sized dsz (BitmapIndexed b2 ary')
@@ -1613,14 +1613,14 @@ unionWithKeyInternal f hm1 (HashMap siz hm2) = go 0 siz hm1 hm2
16131613 go s ! sz (Full ary1) t2 =
16141614 let h2 = leafHashCode t2
16151615 i = index h2 s
1616- A. RunRes dsz ary' =
1616+ A. RunResA dsz ary' =
16171617 update16WithInternal' ary1 i $ \ st1 ->
16181618 go (s+ bitsPerSubkey) sz st1 t2
16191619 in A. Sized dsz (Full ary')
16201620 go s ! sz t1 (Full ary2) =
16211621 let h1 = leafHashCode t1
16221622 i = index h1 s
1623- A. RunRes dsz ary' =
1623+ A. RunResA dsz ary' =
16241624 update16WithInternal' ary2 i $ \ st2 ->
16251625 go (s+ bitsPerSubkey) sz t1 st2
16261626 in A. Sized dsz (Full ary')
@@ -1698,7 +1698,7 @@ unionArrayByInternal siz f b1 b2 ary1 ary2 = A.runInternal $ do
16981698 A. write mary i =<< A. indexM ary2 i2
16991699 go sz (i+ 1 ) (i1 ) (i2+ 1 ) (m `unsafeShiftL` 1 )
17001700 d <- go siz 0 0 0 (b' .&. negate b') -- XXX: b' must be non-zero
1701- return (A. RunRes d mary)
1701+ return (A. RunResM d mary)
17021702 -- TODO: For the case where b1 .&. b2 == b1, i.e. when one is a
17031703 -- subset of the other, we could use a slightly simpler algorithm,
17041704 -- where we copy one array, and then update.
@@ -2253,7 +2253,7 @@ update16With' ary idx f
22532253update16WithInternal' :: A. Array e -> Int -> (e -> A. Sized e ) -> A. RunResA e
22542254update16WithInternal' ary idx f =
22552255 let A. Sized s x = f $! A. index ary idx
2256- in A. RunRes s (update16 ary idx x)
2256+ in A. RunResA s (update16 ary idx x)
22572257{-# INLINE update16WithInternal' #-}
22582258
22592259-- | Unsafely clone an array of 16 elements. The length of the input
0 commit comments