Skip to content

Commit 259dc9e

Browse files
authored
Future-proof against potential Prelude.foldl' (#480)
1 parent 27c37ce commit 259dc9e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Data/HashMap/Internal.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ import Data.HashMap.Internal.List (isPermutationBy, unorderedCompare)
164164
import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid)
165165
import GHC.Exts (Int (..), Int#, TYPE, (==#))
166166
import GHC.Stack (HasCallStack)
167-
import Prelude hiding (filter, foldl, foldr, lookup, map,
168-
null, pred)
167+
import Prelude hiding (Foldable(..), filter, lookup, map,
168+
pred)
169169
import Text.Read hiding (step)
170170

171171
import qualified Data.Data as Data

Data/HashMap/Internal/Array.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import GHC.Exts (Int (..), SmallArray#, SmallMutableArray#,
9494
unsafeFreezeSmallArray#, unsafeThawSmallArray#,
9595
writeSmallArray#)
9696
import GHC.ST (ST (..))
97-
import Prelude hiding (all, filter, foldMap, foldl, foldr, length,
97+
import Prelude hiding (Foldable(..), all, filter,
9898
map, read, traverse)
9999

100100
import qualified GHC.Exts as Exts

Data/HashSet/Internal.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import Data.Hashable.Lifted (Hashable1 (..), Hashable2 (..))
9898
import Data.HashMap.Internal (HashMap, equalKeys, equalKeys1, foldMapWithKey,
9999
foldlWithKey, foldrWithKey)
100100
import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid)
101-
import Prelude hiding (filter, foldl, foldr, map, null)
101+
import Prelude hiding (Foldable(..), filter, map)
102102
import Text.Read
103103

104104
import qualified Data.Data as Data

0 commit comments

Comments
 (0)