Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
2bde60d8
Commit
2bde60d8
authored
Feb 05, 2016
by
Andrey Mokhov
Browse files
Don't print empty arguments.
See
#204
.
parent
793587bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Actions.hs
View file @
2bde60d8
...
...
@@ -98,7 +98,8 @@ fixFile file f = do
runConfigure
::
FilePath
->
[
CmdOption
]
->
[
String
]
->
Action
()
runConfigure
dir
opts
args
=
do
need
[
dir
-/-
"configure"
]
let
note
=
if
null
args
||
args
==
[
""
]
then
""
else
" ("
++
intercalate
", "
args
++
")"
let
args'
=
filter
(
not
.
null
)
args
note
=
if
null
args'
then
""
else
" ("
++
intercalate
", "
args'
++
")"
if
dir
==
"."
then
do
putBuild
$
"| Run configure"
++
note
++
"..."
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment