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
d03137ef
Commit
d03137ef
authored
11 months ago
by
Zoe Zuser
Browse files
Options
Downloads
Patches
Plain Diff
Add comment clarifying disabling check for scripts
closes #8963
parent
d1a6ced0
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/src/Distribution/PackageDescription/Check/Target.hs
+3
-2
3 additions, 2 deletions
Cabal/src/Distribution/PackageDescription/Check/Target.hs
with
3 additions
and
2 deletions
Cabal/src/Distribution/PackageDescription/Check/Target.hs
+
3
−
2
View file @
d03137ef
...
...
@@ -825,9 +825,10 @@ checkGHCOptions title t opts = do
checkFlags
[
"-prof"
]
(
PackageBuildWarning
$
OptProf
title
)
-- Does not apply to scripts.
-- Why do we need this? See #8963.
pid
<-
asksCM
(
pnPackageId
.
ccNames
)
-- Scripts add the -o flag in the fake-package.cabal in order to have the
-- executable name match the script name even when there are characters
-- in the script name which are illegal to have as a target name.
unless
(
pid
==
fakePackageId
)
$
checkFlags
[
"-o"
]
...
...
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