@@ -128,17 +128,17 @@ import Data.Bits ((.&.), (.|.))
128
128
import Data.Coerce (coerce )
129
129
import Data.Functor.Identity (Identity (.. ))
130
130
-- See Note [Imports from Data.HashMap.Internal]
131
+ import Data.Hashable (Hashable )
131
132
import Data.HashMap.Internal (Hash , HashMap (.. ), Leaf (.. ), LookupRes (.. ),
132
133
bitsPerSubkey , fullNodeMask , hash , index , mask ,
133
134
ptrEq , sparseIndex )
134
- import Data.Hashable (Hashable )
135
135
import Prelude hiding (lookup , map )
136
136
137
137
-- See Note [Imports from Data.HashMap.Internal]
138
138
import qualified Data.HashMap.Internal as HM
139
139
import qualified Data.HashMap.Internal.Array as A
140
140
import qualified Data.List as List
141
- import GHC.Exts ( inline )
141
+ import qualified GHC.Exts as Exts
142
142
143
143
{-
144
144
Note [Imports from Data.HashMap.Internal]
@@ -617,7 +617,7 @@ differenceWith f a b = HM.foldlWithKey' go HM.empty a
617
617
-- maps.
618
618
intersectionWith :: (Eq k , Hashable k ) => (v1 -> v2 -> v3 ) -> HashMap k v1
619
619
-> HashMap k v2 -> HashMap k v3
620
- intersectionWith f = inline intersectionWithKey $ const f
620
+ intersectionWith f = Exts. inline intersectionWithKey $ const f
621
621
{-# INLINABLE intersectionWith #-}
622
622
623
623
-- | /O(n+m)/ Intersection of two maps. If a key occurs in both maps
0 commit comments