Skip to content

Commit

Permalink
Future-proof testsuite against potential Prelude.foldl'
Browse files Browse the repository at this point in the history
  • Loading branch information
TeofilC committed Sep 6, 2023
1 parent e74ac0b commit 2db9ebc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion containers-tests/tests/intmap-properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Data.Ord
import Data.Foldable (foldMap)
import Data.Function
import Data.Traversable (Traversable(traverse), foldMapDefault)
import Prelude hiding (lookup, null, map, filter, foldr, foldl)
import Prelude hiding (lookup, null, map, filter, foldr, foldl, foldl')
import qualified Prelude (map)

import Data.List (nub,sort)
Expand Down
2 changes: 1 addition & 1 deletion containers-tests/tests/intset-properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import qualified Data.List as List
import Data.Monoid (mempty)
import qualified Data.Set as Set
import IntSetValidity (valid)
import Prelude hiding (lookup, null, map, filter, foldr, foldl)
import Prelude hiding (lookup, null, map, filter, foldr, foldl, foldl')
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck hiding ((.&.))
Expand Down
2 changes: 1 addition & 1 deletion containers-tests/tests/intset-strictness.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# OPTIONS_GHC -Wno-orphans #-}
module Main (main) where

import Prelude hiding (foldl)
import Prelude hiding (foldl, foldl')

import Test.ChasingBottoms.IsBottom
import Test.Tasty (TestTree, defaultMain, testGroup)
Expand Down
2 changes: 1 addition & 1 deletion containers-tests/tests/map-properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Data.Semigroup (Arg(..))
import Data.Function
import qualified Data.Foldable as Foldable
import qualified Data.Bifoldable as Bifoldable
import Prelude hiding (lookup, null, map, filter, foldr, foldl, take, drop, splitAt)
import Prelude hiding (lookup, null, map, filter, foldr, foldl, foldl', take, drop, splitAt)
import qualified Prelude

import Data.List (nub,sort)
Expand Down
2 changes: 1 addition & 1 deletion containers-tests/tests/seq-properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Data.Semigroup (stimes, stimesMonoid)
import Data.Traversable (Traversable(traverse), sequenceA)
import Prelude hiding (
lookup, null, length, take, drop, splitAt,
foldl, foldl1, foldr, foldr1, scanl, scanl1, scanr, scanr1,
foldl, foldl', foldl1, foldr, foldr1, scanl, scanl1, scanr, scanr1,
filter, reverse, replicate, zip, zipWith, zip3, zipWith3,
all, sum)
import qualified Prelude
Expand Down
2 changes: 1 addition & 1 deletion containers-tests/tests/set-properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import qualified Data.List as List
import Data.Monoid (mempty)
import Data.Maybe
import Data.Set
import Prelude hiding (lookup, null, map, filter, foldr, foldl, all, take, drop, splitAt)
import Prelude hiding (lookup, null, map, filter, foldr, foldl, foldl', all, take, drop, splitAt)
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck
Expand Down

0 comments on commit 2db9ebc

Please sign in to comment.