Skip to content

Commit 0abd9a0

Browse files
committed
Merge pull request #191 from monkey-mas/remove-wrong-document-related-to-bounded-balance-tree
Remove wrong document in {Set, Map}.hs related to key comparison
2 parents 984c8b1 + 7103ac6 commit 0abd9a0

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

Data/Map/Base.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,13 +2436,6 @@ splitLookup k t = k `seq`
24362436
[glue l r] Glues [l] and [r] together. Assumes that [l] and
24372437
[r] are already balanced with respect to each other.
24382438
[merge l r] Merges two trees and restores balance.
2439-
2440-
Note: in contrast to Adam's paper, we use (<=) comparisons instead
2441-
of (<) comparisons in [link], [merge] and [balance].
2442-
Quickcheck (on [difference]) showed that this was necessary in order
2443-
to maintain the invariants. It is quite unsatisfactory that I haven't
2444-
been able to find out why this is actually the case! Fortunately, it
2445-
doesn't hurt to be a bit more conservative.
24462439
--------------------------------------------------------------------}
24472440

24482441
{--------------------------------------------------------------------

Data/Set/Base.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,13 +1259,6 @@ deleteAt i t = i `seq`
12591259
[glue l r] Glues [l] and [r] together. Assumes that [l] and
12601260
[r] are already balanced with respect to each other.
12611261
[merge l r] Merges two trees and restores balance.
1262-
1263-
Note: in contrast to Adam's paper, we use (<=) comparisons instead
1264-
of (<) comparisons in [link], [merge] and [balance].
1265-
Quickcheck (on [difference]) showed that this was necessary in order
1266-
to maintain the invariants. It is quite unsatisfactory that I haven't
1267-
been able to find out why this is actually the case! Fortunately, it
1268-
doesn't hurt to be a bit more conservative.
12691262
--------------------------------------------------------------------}
12701263

12711264
{--------------------------------------------------------------------

0 commit comments

Comments
 (0)