aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2019-09-03 23:25:39 +0200
committerJoris2019-09-03 23:25:39 +0200
commit223ae6aa0b14c071d5719ada0cc6b43e9199a81b (patch)
tree6fc822b7b9bde1989e3c040eb52e5f4d52c49923 /Makefile
parent5cedcecd6ae31e2485dcab2ddd74c74a4779545d (diff)
downloadad-listener-223ae6aa0b14c071d5719ada0cc6b43e9199a81b.tar.gz
ad-listener-223ae6aa0b14c071d5719ada0cc6b43e9199a81b.tar.bz2
ad-listener-223ae6aa0b14c071d5719ada0cc6b43e9199a81b.zip
Use wreq instead of http-conduit to maintain cookies in a session
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 33b5b20..039a460 100644
--- a/Makefile
+++ b/Makefile
@@ -11,19 +11,22 @@ stop:
# Other commands
clean:
- @cabal new-clean > /dev/null
+ @stack clean > /dev/null
+
+install:
+ @stack setup
watch: build
@nodemon --watch src --delay 0.2 -e hs,conf --exec 'clear && make build-and-launch'
build-and-launch:
- @(pkill ad-listener || true) && (nix-shell -p zlib --command "cabal new-run ad-listener" || true)
+ @(pkill ad-listener || true) && (stack exec ad-listener || true)
build:
- @nix-shell -p zlib --command "cabal new-build"
+ @stack build
repl:
- @cabal new-repl
+ @stack repl
test:
- @nix-shell -p zlib --command "cabal new-test"
+ @stack test