Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argonix
Commits
3b204077
Commit
3b204077
authored
Mar 01, 2019
by
Valentin Reis
Browse files
Fix warnings.
parent
a47caa67
Pipeline
#5778
passed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
argonix.cabal
View file @
3b204077
...
...
@@ -36,5 +36,5 @@ executable argonix
-fwarn-missing-signatures
-fwarn-name-shadowing
-fprint-potential-instances
-Wmissing-export-list
-Wmissing-export-list
s
-fwarn-incomplete-patterns
src/Argonix.hs
View file @
3b204077
...
...
@@ -11,7 +11,7 @@ License : MIT
Maintainer : fre@freux.fr
-}
module
Main
where
module
Main
(
main
)
where
import
Data.Default
import
Turtle
hiding
(
header
...
...
@@ -40,20 +40,11 @@ verboseShell :: Bool -> Text -> Shell Line -> Shell ExitCode
verboseShell
v
c
i
=
when
v
(
printCommand
c
)
>>
shell
c
i
printInfo
::
Text
->
Shell
()
printCommand
::
Text
->
Shell
()
printError
::
Text
->
Shell
()
printWarning
::
Text
->
Shell
()
printSuccess
::
Text
->
Shell
()
printTest
::
Text
->
Shell
()
dieRed
::
Text
->
Shell
()
printInfo
=
printf
(
"Info: "
%
s
%
"
\n
"
)
printCommand
=
printf
(
"Running: "
%
s
%
"
\n
"
)
printWarning
=
colorShell
Yellow
.
printf
(
"Warning: "
%
s
%
"
\n
"
)
printError
=
colorShell
Red
.
printf
(
"Error: "
%
s
%
"
\n
"
)
printSuccess
=
colorShell
Green
.
printf
(
"Success: "
%
s
%
"
\n
"
)
printTest
=
colorShell
Green
.
printf
(
"RUNNING TEST: "
%
s
%
"
\n
"
)
dieRed
strw
=
colorShell
Red
(
printf
(
"Failure: "
%
s
)
strw
)
>>
exit
(
ExitFailure
1
)
checkFsAttributes
::
FilePath
->
Shell
()
checkFsAttributes
workingDirectory
=
do
...
...
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