Skip to content

Commit f9e530a

Browse files
committed
Rename local binding to avoid clash with (<>)
1 parent e0cfcea commit f9e530a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Data/Sequence.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,28 +2459,28 @@ unrollPQ cmp = unrollPQ'
24592459
where
24602460
{-# INLINE unrollPQ' #-}
24612461
unrollPQ' (PQueue x ts) = x:mergePQs0 ts
2462-
(<>) = mergePQ cmp
2462+
(<+>) = mergePQ cmp
24632463
mergePQs0 Nil = []
24642464
mergePQs0 (t :& Nil) = unrollPQ' t
2465-
mergePQs0 (t1 :& t2 :& ts) = mergePQs (t1 <> t2) ts
2465+
mergePQs0 (t1 :& t2 :& ts) = mergePQs (t1 <+> t2) ts
24662466
mergePQs t ts = t `seq` case ts of
24672467
Nil -> unrollPQ' t
2468-
t1 :& Nil -> unrollPQ' (t <> t1)
2469-
t1 :& t2 :& ts' -> mergePQs (t <> (t1 <> t2)) ts'
2468+
t1 :& Nil -> unrollPQ' (t <+> t1)
2469+
t1 :& t2 :& ts' -> mergePQs (t <+> (t1 <+> t2)) ts'
24702470

24712471
-- | 'toPQ', given an ordering function and a mechanism for queueifying
24722472
-- elements, converts a 'FingerTree' to a 'PQueue'.
24732473
toPQ :: (e -> e -> Ordering) -> (a -> PQueue e) -> FingerTree a -> Maybe (PQueue e)
24742474
toPQ _ _ Empty = Nothing
24752475
toPQ _ f (Single x) = Just (f x)
2476-
toPQ cmp f (Deep _ pr m sf) = Just (maybe (pr' <> sf') ((pr' <> sf') <>) (toPQ cmp fNode m))
2476+
toPQ cmp f (Deep _ pr m sf) = Just (maybe (pr' <+> sf') ((pr' <+> sf') <+>) (toPQ cmp fNode m))
24772477
where
24782478
fDigit digit = case fmap f digit of
24792479
One a -> a
2480-
Two a b -> a <> b
2481-
Three a b c -> a <> b <> c
2482-
Four a b c d -> (a <> b) <> (c <> d)
2483-
(<>) = mergePQ cmp
2480+
Two a b -> a <+> b
2481+
Three a b c -> a <+> b <+> c
2482+
Four a b c d -> (a <+> b) <+> (c <+> d)
2483+
(<+>) = mergePQ cmp
24842484
fNode = fDigit . nodeToDigit
24852485
pr' = fDigit pr
24862486
sf' = fDigit sf

0 commit comments

Comments
 (0)