Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
argotk
Commits
9bc62d49
Commit
9bc62d49
authored
Mar 26, 2019
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more code moved into shakebuild
parent
832d1e59
Pipeline
#6180
passed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
shake.hs
shake.hs
+24
-20
No files found.
shake.hs
View file @
9bc62d49
...
...
@@ -10,6 +10,7 @@ import Development.Shake
import
Protolude
import
Development.Shake.FilePath
import
Control.Monad
import
System.Process.Typed
refactCommands
=
[
"OrganizeImports Argo.Stack"
...
...
@@ -18,29 +19,32 @@ refactCommands =
,
"OrganizeImports Argo.Types"
]
main
=
shakeArgs
shakeOptions
$
do
phony
"clean"
$
removeFilesAfter
"."
[
"README.md"
]
main
=
getArgs
>>=
deal
where
deal
args
|
"ghcid"
`
elem
`
args
=
void
$
startProcess
$
proc
"ghcid"
[
"--command"
,
"cabal new-repl "
<>
" --ghc-options=-fno-code"
<>
" --ghc-options=-fno-break-on-exception"
<>
" --ghc-options=-fno-break-on-error"
<>
" --ghc-options=-v1 --ghc-options=-ferror-spans"
,
"--restart"
,
"argonix.cabal"
,
"--restart"
,
"default.nix"
,
"--restart"
,
"shell.nix"
]
|
otherwise
=
runshake
phony
"ghcid"
$
cmd_
Shell
$
"while true; do "
<>
"nix-shell "
<>
"--run 'ghcid "
<>
"--command
\"
cabal repl --ghc-options=-fno-code "
<>
"--ghc-options=-fno-break-on-exception "
<>
"--ghc-options=-fno-break-on-error "
<>
"--ghc-options=-v1 --ghc-options=-ferror-spans "
<>
"--ghc-options=-j
\"
"
<>
"--restart=argotk.cabal "
<>
"--restart=default.nix"
<>
"--restart=shell.nix'"
<>
"; done"
runshake
=
shakeArgs
shakeOptions
$
do
phony
"clean"
$
removeFilesAfter
"."
[
"README.md"
]
phony
"ht-refact"
htRefactAll
phony
"brittany"
brittany
phony
"codequality"
$
htRefactAll
>>
brittany
phony
"brittany"
brittany
phony
"codequality"
$
htRefactAll
>>
brittany
want
[
"README.md"
]
...
...
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