Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
1fe1e055
Commit
1fe1e055
authored
Apr 24, 2014
by
Ian D. Bollinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment about temporary fix for pretty-printing defaults
parent
b74db39f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cabal/Distribution/PackageDescription/PrettyPrint.hs
Cabal/Distribution/PackageDescription/PrettyPrint.hs
+2
-0
No files found.
Cabal/Distribution/PackageDescription/PrettyPrint.hs
View file @
1fe1e055
...
...
@@ -74,6 +74,8 @@ ppSourceRepo repo =
where
sourceRepoFieldDescrs'
=
[
fd
|
fd
<-
sourceRepoFieldDescrs
,
fieldName
fd
/=
"kind"
]
-- TODO: this is a temporary hack. Ideally, fields containing default values
-- would be filtered out when the @FieldDescr a@ list is generated.
ppFieldsFiltered
::
[(
String
,
String
)]
->
[
FieldDescr
a
]
->
a
->
Doc
ppFieldsFiltered
removable
fields
x
=
ppFields
(
filter
nondefault
fields
)
x
where
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment