Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
33f1b714
Commit
33f1b714
authored
Jul 17, 2014
by
Daniel Trstenjak
Browse files
Fix pretty printing of flags
Pretty print the fields of flags nested.
parent
f236efd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/PackageDescription/PrettyPrint.hs
View file @
33f1b714
...
...
@@ -109,7 +109,7 @@ ppGenPackageFlags flds = vcat [ppFlag f | f <- flds]
ppFlag
::
Flag
->
Doc
ppFlag
flag
@
(
MkFlag
name
_
_
_
)
=
emptyLine
$
text
"flag"
<+>
ppFlagName
name
$+$
fields
emptyLine
$
text
"flag"
<+>
ppFlagName
name
$+$
nest
indentWith
fields
where
fields
=
ppFieldsFiltered
flagDefaults
flagFieldDescrs
flag
...
...
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