From 259dc9e4191d988a7f84c3d417764a32e7c8e29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CB=8Cbod=CA=B2=C9=AA=CB=88=C9=A1r=CA=B2im?= Date: Thu, 8 Jun 2023 19:24:29 +0100 Subject: [PATCH] Future-proof against potential Prelude.foldl' (#480) --- Data/HashMap/Internal.hs | 4 ++-- Data/HashMap/Internal/Array.hs | 2 +- Data/HashSet/Internal.hs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Data/HashMap/Internal.hs b/Data/HashMap/Internal.hs index 6527f070..2bb7029c 100644 --- a/Data/HashMap/Internal.hs +++ b/Data/HashMap/Internal.hs @@ -164,8 +164,8 @@ import Data.HashMap.Internal.List (isPermutationBy, unorderedCompare) import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid) import GHC.Exts (Int (..), Int#, TYPE, (==#)) import GHC.Stack (HasCallStack) -import Prelude hiding (filter, foldl, foldr, lookup, map, - null, pred) +import Prelude hiding (Foldable(..), filter, lookup, map, + pred) import Text.Read hiding (step) import qualified Data.Data as Data diff --git a/Data/HashMap/Internal/Array.hs b/Data/HashMap/Internal/Array.hs index dda9edcf..79cf30ba 100644 --- a/Data/HashMap/Internal/Array.hs +++ b/Data/HashMap/Internal/Array.hs @@ -94,7 +94,7 @@ import GHC.Exts (Int (..), SmallArray#, SmallMutableArray#, unsafeFreezeSmallArray#, unsafeThawSmallArray#, writeSmallArray#) import GHC.ST (ST (..)) -import Prelude hiding (all, filter, foldMap, foldl, foldr, length, +import Prelude hiding (Foldable(..), all, filter, map, read, traverse) import qualified GHC.Exts as Exts diff --git a/Data/HashSet/Internal.hs b/Data/HashSet/Internal.hs index da0713c3..be1af480 100644 --- a/Data/HashSet/Internal.hs +++ b/Data/HashSet/Internal.hs @@ -98,7 +98,7 @@ import Data.Hashable.Lifted (Hashable1 (..), Hashable2 (..)) import Data.HashMap.Internal (HashMap, equalKeys, equalKeys1, foldMapWithKey, foldlWithKey, foldrWithKey) import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid) -import Prelude hiding (filter, foldl, foldr, map, null) +import Prelude hiding (Foldable(..), filter, map) import Text.Read import qualified Data.Data as Data