Skip to content
Snippets Groups Projects
Unverified Commit 720b6b1a authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Future-proof against potential Prelude.foldl' (backport #8960) (#9265)

parent 390dc1ca
No related branches found
No related tags found
No related merge requests found
......@@ -130,10 +130,9 @@ module Distribution.Compat.Prelude (
-- We also could hide few partial function
import Prelude as BasePrelude hiding
( mapM, mapM_, sequence, null, length, foldr, any, all, head, tail, last, init
( mapM, mapM_, sequence, any, all, head, tail, last, init
-- partial functions
, read
, foldr1, foldl1
#if MINVER_base_411
-- As of base 4.11.0.0 Prelude exports part of Semigroup(..).
-- Hide this so we instead rely on Distribution.Compat.Semigroup.
......@@ -142,8 +141,9 @@ import Prelude as BasePrelude hiding
, Word
-- We hide them, as we import only some members
, Traversable, traverse, sequenceA
, Foldable, foldMap
, Foldable(..)
)
import Data.Foldable as BasePrelude (foldl, elem, sum, product, maximum, minimum)
-- AMP
import Data.Foldable
......
......@@ -5,8 +5,9 @@
#endif
module UnitTests.Distribution.Utils.CharSet where
import Prelude hiding (Foldable(..))
import Data.Char (isAlpha, isAlphaNum)
import Data.List (foldl')
import Data.Foldable (foldl')
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.HUnit (testCase, (@?=))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment