Skip to content

Commit f57b117

Browse files
committed
fixing revertion
1 parent ff1be0a commit f57b117

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

containers/src/Data/IntMap/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,12 @@ deriving instance Lift a => Lift (IntMap a)
439439
#endif
440440
(!) m0 !k = go m0
441441
where
442-
go (Bin p m l r) | nomatch k p m = not_found
443-
| zero k m = go l
444-
| otherwise = go r
442+
go (Bin p l r) | left k p = go l
443+
| otherwise = go r
445444
go (Tip kx x) | k == kx = x
446445
| otherwise = not_found
447446
go Nil = not_found
447+
448448
not_found = error ("IntMap.!: key " ++ show k ++ " is not an element of the map")
449449

450450
-- | \(O(\min(n,W))\). Find the value at a key.

0 commit comments

Comments
 (0)