@@ -155,7 +155,7 @@ import Data.Hashable (Hashable)
155155import Data.Hashable.Lifted (Hashable1 , Hashable2 )
156156import Data.HashMap.Internal.List (isPermutationBy , unorderedCompare )
157157import Data.Semigroup (Semigroup (.. ), stimesIdempotentMonoid )
158- import GHC.Exts (Int (.. ), Int #, TYPE , (==#) , inline )
158+ import GHC.Exts (Int (.. ), Int #, TYPE , (==#) )
159159import GHC.Stack (HasCallStack )
160160import 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.
17581758intersection :: (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.
17651765intersectionWith :: (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