File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1426,9 +1426,7 @@ alterFEager f !k m = (<$> f mv) $ \case
1426
1426
1427
1427
where ! h = hash k
1428
1428
! lookupRes = lookupRecordCollision h k m
1429
- ! mv = case lookupRes of
1430
- Absent -> Nothing
1431
- Present v _ -> Just v
1429
+ ! mv = lookupResToMaybe lookupRes
1432
1430
{-# INLINABLE alterFEager #-}
1433
1431
1434
1432
-- | \(O(n \log m)\) Inclusion of maps. A map is included in another map if the keys
Original file line number Diff line number Diff line change @@ -438,9 +438,7 @@ alterFEager f !k !m = (<$> f mv) $ \fres ->
438
438
439
439
where ! h = hash k
440
440
! lookupRes = HM. lookupRecordCollision h k m
441
- ! mv = case lookupRes of
442
- Absent -> Nothing
443
- Present v _ -> Just v
441
+ ! mv = HM. lookupResToMaybe lookupRes
444
442
{-# INLINABLE alterFEager #-}
445
443
446
444
------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments