From 3c963bf889d260240fbc5367b390c74dd848eb4f Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Thu, 24 Mar 2022 12:33:53 -0700 Subject: [PATCH] Use cabal for 'make bench'. --- Makefile | 9 +++++---- 1 file 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