Skip to content

Commit 92e4b2a

Browse files
Exts.inline
1 parent 1c20739 commit 92e4b2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/HashMap/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ import Data.Hashable (Hashable)
155155
import Data.Hashable.Lifted (Hashable1, Hashable2)
156156
import Data.HashMap.Internal.List (isPermutationBy, unorderedCompare)
157157
import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid)
158-
import GHC.Exts (Int (..), Int#, TYPE, (==#), inline)
158+
import GHC.Exts (Int (..), Int#, TYPE, (==#))
159159
import GHC.Stack (HasCallStack)
160160
import Prelude hiding (filter, foldl, foldr, lookup, map,
161161
null, pred)
@@ -1756,14 +1756,14 @@ differenceWith f a b = foldlWithKey' go empty a
17561756
-- | /O(n*log m)/ Intersection of two maps. Return elements of the first
17571757
-- map for keys existing in the second.
17581758
intersection :: (Eq k, Hashable k) => HashMap k v -> HashMap k w -> HashMap k v
1759-
intersection = inline intersectionWith const
1759+
intersection = Exts.inline intersectionWith const
17601760
{-# INLINABLE intersection #-}
17611761

17621762
-- | /O(n*log m)/ Intersection of two maps. If a key occurs in both maps
17631763
-- the provided function is used to combine the values from the two
17641764
-- maps.
17651765
intersectionWith :: (Eq k, Hashable k) => (v1 -> v2 -> v3) -> HashMap k v1 -> HashMap k v2 -> HashMap k v3
1766-
intersectionWith f = inline intersectionWithKey $ const f
1766+
intersectionWith f = Exts.inline intersectionWithKey $ const f
17671767
{-# INLINABLE intersectionWith #-}
17681768

17691769
-- | /O(n*log m)/ Intersection of two maps. If a key occurs in both maps

0 commit comments

Comments
 (0)