Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
720b6b1a
Unverified
Commit
720b6b1a
authored
1 year ago
by
mergify[bot]
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Future-proof against potential Prelude.foldl' (backport #8960) (#9265)
Co-authored-by:
Bodigrim
<
andrew.lelechenko@gmail.com
>
parent
390dc1ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cabal-syntax/src/Distribution/Compat/Prelude.hs
+3
-3
3 additions, 3 deletions
Cabal-syntax/src/Distribution/Compat/Prelude.hs
Cabal-tests/tests/UnitTests/Distribution/Utils/CharSet.hs
+2
-1
2 additions, 1 deletion
Cabal-tests/tests/UnitTests/Distribution/Utils/CharSet.hs
with
5 additions
and
4 deletions
Cabal-syntax/src/Distribution/Compat/Prelude.hs
+
3
−
3
View file @
720b6b1a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Cabal-tests/tests/UnitTests/Distribution/Utils/CharSet.hs
+
2
−
1
View file @
720b6b1a
...
...
@@ -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
,
(
@?=
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment