aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-03-24 12:33:53 -0700
committerJohn MacFarlane <[email protected]>2022-03-24 12:34:17 -0700
commit3c963bf889d260240fbc5367b390c74dd848eb4f (patch)
tree99db8fd137399c474126c4dac28ed1fe03736f6f /Makefile
parentb9eeb77df552e39148b02c16cbb65e6b1c7a248d (diff)
Use cabal for 'make bench'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bbc2b461e..8c9069343 100644
--- a/Makefile
+++ b/Makefile
@@ -57,10 +57,11 @@ ghcid-test: ## run ghcid/stack with tests
ghcid -c "stack repl --ghc-options=-XNoImplicitPrelude --flag 'pandoc:embed_data_files' --ghci-options=-fobject-code pandoc:lib pandoc:test-pandoc"
bench: ## build and run benchmarks
- stack bench \
- --ghc-options '$(GHCOPTS)' \
- --benchmark-arguments='$(BENCHARGS)' 2>&1 | \
- tee "bench_latest.txt"
+ cabal bench --benchmark-options='$(BENCHARGS)' 2>&1 | tee "bench_latest.txt"
+# stack bench \
+# --ghc-options '$(GHCOPTS)' \
+# --benchmark-arguments='$(BENCHARGS)' 2>&1 | \
+# tee "bench_latest.txt"
reformat: ## reformat with stylish-haskell
for f in $(SOURCEFILES); do echo $$f; stylish-haskell -i $$f ; done