Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion containers/src/Data/Map/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4311,7 +4311,7 @@ balance_ k x l r = case l of
(_, _) -> error "Failure in Data.Map.balance"
{-# NOINLINE balance_ #-}

-- Functions balanceL and balanceR are specialised versions of balance.
-- Functions balanceL and balanceR are specialized versions of balance.
-- balanceL only checks whether the left subtree is too big,
-- balanceR only checks whether the right subtree is too big.

Expand Down
12 changes: 6 additions & 6 deletions containers/src/Data/Sequence/Internal/Sorting.hs
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ foldToMaybeWithIndexTree :: (b -> b -> b)
-> Maybe b
foldToMaybeWithIndexTree = foldToMaybeWithIndexTree'
where
{-# SPECIALISE foldToMaybeWithIndexTree' :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> FingerTree (Elem y) -> Maybe b #-}
{-# SPECIALISE foldToMaybeWithIndexTree' :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> FingerTree (Node y) -> Maybe b #-}
{-# SPECIALIZE foldToMaybeWithIndexTree' :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> FingerTree (Elem y) -> Maybe b #-}
{-# SPECIALIZE foldToMaybeWithIndexTree' :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> FingerTree (Node y) -> Maybe b #-}
foldToMaybeWithIndexTree'
:: Sized a
=> (b -> b -> b) -> (Int -> a -> b) -> Int -> FingerTree a -> Maybe b
Expand All @@ -422,14 +422,14 @@ foldToMaybeWithIndexTree = foldToMaybeWithIndexTree'
m' = foldToMaybeWithIndexTree' (<+>) (node (<+>) f) sPspr m
!sPspr = s + size pr
!sPsprm = sPspr + size m
{-# SPECIALISE digit :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> Digit (Elem y) -> b #-}
{-# SPECIALISE digit :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> Digit (Node y) -> b #-}
{-# SPECIALIZE digit :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> Digit (Elem y) -> b #-}
{-# SPECIALIZE digit :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> Digit (Node y) -> b #-}
digit
:: Sized a
=> (b -> b -> b) -> (Int -> a -> b) -> Int -> Digit a -> b
digit = foldWithIndexDigit
{-# SPECIALISE node :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> Node (Elem y) -> b #-}
{-# SPECIALISE node :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> Node (Node y) -> b #-}
{-# SPECIALIZE node :: (b -> b -> b) -> (Int -> Elem y -> b) -> Int -> Node (Elem y) -> b #-}
{-# SPECIALIZE node :: (b -> b -> b) -> (Int -> Node y -> b) -> Int -> Node (Node y) -> b #-}
node
:: Sized a
=> (b -> b -> b) -> (Int -> a -> b) -> Int -> Node a -> b
Expand Down
2 changes: 1 addition & 1 deletion containers/src/Data/Set/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ ratio = 2
-- Only balanceL and balanceR are needed at the moment, so balance is not here anymore.
-- In case it is needed, it can be found in Data.Map.

-- Functions balanceL and balanceR are specialised versions of balance.
-- Functions balanceL and balanceR are specialized versions of balance.
-- balanceL only checks whether the left subtree is too big,
-- balanceR only checks whether the right subtree is too big.

Expand Down
Loading