We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2183a93 commit 76c949bCopy full SHA for 76c949b
containers/src/Data/Set/Internal.hs
@@ -836,10 +836,8 @@ union t1 Tip = t1
836
union t1 (Bin 1 x _ _) = insertR x t1
837
union (Bin 1 x _ _) t2 = insert x t2
838
union Tip t2 = t2
839
-union t1@(Bin _ x l1 r1) t2 = case splitS x t2 of
840
- (l2 :*: r2)
841
- | l1l2 `ptrEq` l1 && r1r2 `ptrEq` r1 -> t1
842
- | otherwise -> link x l1l2 r1r2
+union (Bin _ x l1 r1) t2 = case splitS x t2 of
+ (l2 :*: r2) -> link x l1l2 r1r2
843
where !l1l2 = union l1 l2
844
!r1r2 = union r1 r2
845
#if __GLASGOW_HASKELL__
0 commit comments