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
Glasgow Haskell Compiler
Packages
Cabal
Commits
1295af3c
Commit
1295af3c
authored
6 years ago
by
Matt Renaud
Browse files
Options
Downloads
Patches
Plain Diff
Minor code cleanup to address
@23Skidoo
's comment.
https://github.com/haskell/cabal/pull/5768#discussion_r239067205
parent
27fc0fe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cabal-install/Distribution/Client/CmdTest.hs
+3
-3
3 additions, 3 deletions
cabal-install/Distribution/Client/CmdTest.hs
with
3 additions
and
3 deletions
cabal-install/Distribution/Client/CmdTest.hs
+
3
−
3
View file @
1295af3c
...
...
@@ -105,7 +105,7 @@ testAction (configFlags, configExFlags, installFlags, haddockFlags, testFlags)
-- Interpret the targets on the command line as test targets
-- (as opposed to say build or haddock targets).
targets
<-
either
(
reportTargetProblems
failWhenNoTestSuites
verbosity
)
return
targets
<-
either
(
reportTargetProblems
verbosity
failWhenNoTestSuites
)
return
$
resolveTargets
selectPackageTargets
selectComponentTarget
...
...
@@ -210,8 +210,8 @@ data TargetProblem =
|
TargetProblemIsSubComponent
PackageId
ComponentName
SubComponentTarget
deriving
(
Eq
,
Show
)
reportTargetProblems
::
Flag
Bool
->
Verbosity
->
[
TargetProblem
]
->
IO
a
reportTargetProblems
failWhenNoTestSuites
verbosity
problems
=
reportTargetProblems
::
Verbosity
->
Flag
Bool
->
[
TargetProblem
]
->
IO
a
reportTargetProblems
verbosity
failWhenNoTestSuites
problems
=
case
(
failWhenNoTestSuites
,
problems
)
of
(
Flag
True
,
[
TargetProblemNoTests
_
])
->
die'
verbosity
problemsMessage
...
...
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