File tree Expand file tree Collapse file tree 12 files changed +19
-20
lines changed
cabal-install-solver/src/Distribution/Solver
cabal-install/src/Distribution/Client
cabal-testsuite/src/Test/Cabal Expand file tree Collapse file tree 12 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 56
56
- ignore : {name: "Use record patterns"} # 16 hints
57
57
- ignore : {name: "Use replicateM_"} # 2 hints
58
58
- ignore : {name: "Use rights"} # 2 hints
59
- - ignore : {name: "Use section"} # 18 hints
60
59
- ignore : {name: "Use tuple-section"} # 28 hints
61
60
- ignore : {name: "Use typeRep"} # 2 hints
62
- - ignore : {name: "Use unless"} # 23 hints
61
+ - ignore : {name: "Use unless"} # 23 hints+++++++++
63
62
- ignore : {name: "Use unwords"} # 8 hints
64
63
- ignore : {name: "Use void"} # 23 hints
65
64
Original file line number Diff line number Diff line change @@ -1060,7 +1060,7 @@ checkMissingDocs dgs esgs edgs efgs = do
1060
1060
-> [FilePath ] -- Actuals.
1061
1061
-> [PackageCheck ]
1062
1062
checkDoc b ds as =
1063
- let fds = map (" ." </> ) $ filter (flip notElem as) ds
1063
+ let fds = map (" ." </> ) $ filter (` notElem` as) ds
1064
1064
in if null fds
1065
1065
then []
1066
1066
else
@@ -1075,7 +1075,7 @@ checkMissingDocs dgs esgs edgs efgs = do
1075
1075
-> [FilePath ] -- Actuals.
1076
1076
-> [PackageCheck ]
1077
1077
checkDocMove b field ds as =
1078
- let fds = filter (flip elem as) ds
1078
+ let fds = filter (` elem` as) ds
1079
1079
in if null fds
1080
1080
then []
1081
1081
else
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ checkLibrary
79
79
checkP
80
80
( not $
81
81
all
82
- (flip elem (explicitLibModules lib))
82
+ (` elem` (explicitLibModules lib))
83
83
(libModulesAutogen lib)
84
84
)
85
85
(PackageBuildImpossible AutogenNotExposed )
@@ -172,7 +172,7 @@ checkExecutable
172
172
-- Alas exeModules ad exeModulesAutogen (exported from
173
173
-- Distribution.Types.Executable) take `Executable` as a parameter.
174
174
checkP
175
- (not $ all (flip elem (exeModules exe)) (exeModulesAutogen exe))
175
+ (not $ all (` elem` (exeModules exe)) (exeModulesAutogen exe))
176
176
(PackageBuildImpossible $ AutogenNoOther cet)
177
177
checkP
178
178
( not $
@@ -218,7 +218,7 @@ checkTestSuite
218
218
checkP
219
219
( not $
220
220
all
221
- (flip elem (testModules ts))
221
+ (` elem` (testModules ts))
222
222
(testModulesAutogen ts)
223
223
)
224
224
(PackageBuildImpossible $ AutogenNoOther cet)
@@ -280,7 +280,7 @@ checkBenchmark
280
280
checkP
281
281
( not $
282
282
all
283
- (flip elem (benchmarkModules bm))
283
+ (` elem` (benchmarkModules bm))
284
284
(benchmarkModulesAutogen bm)
285
285
)
286
286
(PackageBuildImpossible $ AutogenNoOther cet)
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ build_setupHooks
240
240
, SetupHooks. targetInfo = target
241
241
}
242
242
for_ mbPostBuild ($ postBuildInputs)
243
- return (maybe index (Index. insert `flip ` index) mb_ipi)
243
+ return (maybe index (` Index.insert` index) mb_ipi)
244
244
245
245
return ()
246
246
where
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ instance Monad (Progress step fail) where
62
62
63
63
instance Applicative (Progress step fail ) where
64
64
pure a = Done a
65
- p <*> x = foldProgress Step Fail (flip fmap x) p
65
+ p <*> x = foldProgress Step Fail (` fmap` x) p
66
66
67
67
instance Monoid fail => Alternative (Progress step fail ) where
68
68
empty = Fail Mon. mempty
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ preferPackagePreferences pcs =
135
135
preferred pn opt =
136
136
let PackagePreferences vrs _ _ = pcs pn
137
137
in fromIntegral . negate . L. length $
138
- L. filter (flip checkVR (version opt)) vrs
138
+ L. filter (` checkVR` (version opt)) vrs
139
139
140
140
-- Prefer installed packages over non-installed packages.
141
141
installed :: POption -> Weight
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ instance Monad (Progress step fail) where
42
42
43
43
instance Applicative (Progress step fail ) where
44
44
pure a = Done a
45
- p <*> x = foldProgress Step Fail (flip fmap x) p
45
+ p <*> x = foldProgress Step Fail (` fmap` x) p
46
46
47
47
instance Monoid fail => Alternative (Progress step fail ) where
48
48
empty = Fail mempty
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ legacyWrapperCmd ui commonFlags = toLegacyCmd (wrapperCmd ui commonFlags)
163
163
newCmd :: CommandUI flags -> (flags -> [String ] -> globals -> IO action ) -> [CommandSpec (globals -> IO action )]
164
164
newCmd origUi@ CommandUI {.. } action = [cmd defaultUi, cmd newUi, cmd origUi]
165
165
where
166
- cmd ui = CommandSpec ui (flip commandAddAction action) NormalCommand
166
+ cmd ui = CommandSpec ui (` commandAddAction` action) NormalCommand
167
167
168
168
newMsg = T. unpack . T. replace " v2-" " new-" . T. pack
169
169
newUi =
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ type OutdatedDependency = OutdatedDependencyX Version
395
395
-- | Convert a list of 'UserConstraint's to a 'Dependency' list.
396
396
userConstraintsToDependencies :: [(UserConstraint , ConstraintSource )] -> [CandidateOutdatedDependency ]
397
397
userConstraintsToDependencies ucnstrs =
398
- mapMaybe (\ (uc, src) -> fmap (flip mkCandidateOutdatedDependency (ConfigSource src)) (packageConstraintToDependency . userToPackageConstraint $ uc)) ucnstrs
398
+ mapMaybe (\ (uc, src) -> fmap (` mkCandidateOutdatedDependency` (ConfigSource src)) (packageConstraintToDependency . userToPackageConstraint $ uc)) ucnstrs
399
399
400
400
-- | Read the list of dependencies from the freeze file.
401
401
depsFromFreezeFile :: Verbosity -> IO [CandidateOutdatedDependency ]
Original file line number Diff line number Diff line change @@ -783,9 +783,9 @@ processingInvariant
783
783
-> Bool
784
784
processingInvariant plan (Processing processingSet completedSet failedSet) =
785
785
-- All the packages in the three sets are actually in the graph
786
- assert (Foldable. all (flip Graph. member (planGraph plan)) processingSet)
787
- $ assert (Foldable. all (flip Graph. member (planGraph plan)) completedSet)
788
- $ assert (Foldable. all (flip Graph. member (planGraph plan)) failedSet)
786
+ assert (Foldable. all (` Graph.member` (planGraph plan)) processingSet)
787
+ $ assert (Foldable. all (` Graph.member` (planGraph plan)) completedSet)
788
+ $ assert (Foldable. all (` Graph.member` (planGraph plan)) failedSet)
789
789
$
790
790
-- The processing, completed and failed sets are disjoint from each other
791
791
assert (noIntersection processingSet completedSet)
@@ -1070,7 +1070,7 @@ problems graph =
1070
1070
| pkg <- Foldable. toList graph
1071
1071
, Just pkg' <-
1072
1072
map
1073
- (flip Graph. lookup graph)
1073
+ (` Graph.lookup` graph)
1074
1074
(nodeNeighbors pkg)
1075
1075
, not (stateDependencyRelation pkg pkg')
1076
1076
]
You can’t perform that action at this time.
0 commit comments