Skip to content

Commit

Permalink
Future-proof against potential Prelude.foldl' (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored Jun 8, 2023
1 parent 27c37ce commit 259dc9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Data/HashMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Data/HashMap/Internal/Array.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Data/HashSet/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 259dc9e

Please sign in to comment.