Skip to content

Commit 9078dd5

Browse files
authored
Remove old documentation on invariants (#451)
The invariants are now documented in the haddocks for HashMap.
1 parent 70fdaa7 commit 9078dd5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Data/HashMap/Internal.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ instance NFData k => NFData1 (Leaf k) where
206206
instance NFData2 Leaf where
207207
liftRnf2 rnf1 rnf2 (L k v) = rnf1 k `seq` rnf2 v
208208

209-
-- Invariant: The length of the 1st argument to 'Full' is
210-
-- 2^bitsPerSubkey
211-
212209
-- | A map from keys to values. A map cannot contain duplicate keys;
213210
-- each key can map to at most one value.
214211
data HashMap k v
@@ -423,9 +420,6 @@ instance Eq k => Eq1 (HashMap k) where
423420
instance (Eq k, Eq v) => Eq (HashMap k v) where
424421
(==) = equal1 (==)
425422

426-
-- We rely on there being no Empty constructors in the tree!
427-
-- This ensures that two equal HashMaps will have the same
428-
-- shape, modulo the order of entries in Collisions.
429423
equal1 :: Eq k
430424
=> (v -> v' -> Bool)
431425
-> HashMap k v -> HashMap k v' -> Bool

0 commit comments

Comments
 (0)