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
78bad98a
Commit
78bad98a
authored
Jul 24, 2012
by
Brent Yorgey
Committed by
tibbe
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabal init: fix behavior of --no-comments flag
parent
a5f69e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cabal-install/Distribution/Client/Init.hs
cabal-install/Distribution/Client/Init.hs
+1
-1
No files found.
cabal-install/Distribution/Client/Init.hs
View file @
78bad98a
...
...
@@ -245,7 +245,7 @@ getLibOrExec flags = do
-- | Ask whether to generate explanitory comments.
getGenComments
::
InitFlags
->
IO
InitFlags
getGenComments
flags
=
do
genComments
<-
return
(
flagToMaybe
$
noComments
flags
)
genComments
<-
return
(
not
<$>
(
flagToMaybe
$
noComments
flags
)
)
?>>
maybePrompt
flags
(
promptYesNo
promptMsg
(
Just
False
))
?>>
return
(
Just
False
)
return
$
flags
{
noComments
=
maybeToFlag
(
fmap
not
genComments
)
}
...
...
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