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
bb3afeed
Commit
bb3afeed
authored
3 years ago
by
Emily Pillmore
Browse files
Options
Downloads
Patches
Plain Diff
fix formatter extra-doc-files
parent
6bb2df8c
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/src/Distribution/Client/Init/Format.hs
+5
-7
5 additions, 7 deletions
cabal-install/src/Distribution/Client/Init/Format.hs
with
5 additions
and
7 deletions
cabal-install/src/Distribution/Client/Init/Format.hs
+
5
−
7
View file @
bb3afeed
...
...
@@ -320,13 +320,11 @@ mkPkgDescription opts pkgDesc =
opts
,
case
_pkgExtraDocFiles
pkgDesc
of
Nothing
->
PrettyEmpty
Just
fs
|
null
fs
->
PrettyEmpty
|
otherwise
->
field
"extra-doc-files"
formatExtraSourceFiles
(
toList
fs
)
[
"Extra doc files to be distributed with the package, such as a CHANGELOG or a README."
]
True
opts
Just
fs
->
field
"extra-doc-files"
formatExtraSourceFiles
(
toList
fs
)
[
"Extra doc files to be distributed with the package, such as a CHANGELOG or a README."
]
True
opts
,
field
"extra-source-files"
formatExtraSourceFiles
(
toList
$
_pkgExtraSrcFiles
pkgDesc
)
[
"Extra source files to be distributed with the package, such as examples, or a tutorial module."
]
...
...
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