Skip to content

Commit d24cc1f

Browse files
use Exts.inline
1 parent d9a50d7 commit d24cc1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/HashMap/Internal/Strict.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,17 @@ import Data.Bits ((.&.), (.|.))
128128
import Data.Coerce (coerce)
129129
import Data.Functor.Identity (Identity (..))
130130
-- See Note [Imports from Data.HashMap.Internal]
131+
import Data.Hashable (Hashable)
131132
import Data.HashMap.Internal (Hash, HashMap (..), Leaf (..), LookupRes (..),
132133
bitsPerSubkey, fullNodeMask, hash, index, mask,
133134
ptrEq, sparseIndex)
134-
import Data.Hashable (Hashable)
135135
import Prelude hiding (lookup, map)
136136

137137
-- See Note [Imports from Data.HashMap.Internal]
138138
import qualified Data.HashMap.Internal as HM
139139
import qualified Data.HashMap.Internal.Array as A
140140
import qualified Data.List as List
141-
import GHC.Exts (inline)
141+
import qualified GHC.Exts as Exts
142142

143143
{-
144144
Note [Imports from Data.HashMap.Internal]
@@ -617,7 +617,7 @@ differenceWith f a b = HM.foldlWithKey' go HM.empty a
617617
-- maps.
618618
intersectionWith :: (Eq k, Hashable k) => (v1 -> v2 -> v3) -> HashMap k v1
619619
-> HashMap k v2 -> HashMap k v3
620-
intersectionWith f = inline intersectionWithKey $ const f
620+
intersectionWith f = Exts.inline intersectionWithKey $ const f
621621
{-# INLINABLE intersectionWith #-}
622622

623623
-- | /O(n+m)/ Intersection of two maps. If a key occurs in both maps

0 commit comments

Comments
 (0)