Use cabal for 'make bench'.
This commit is contained in:
parent
b9eeb77df5
commit
3c963bf889
1 changed files with 5 additions and 4 deletions
9
Makefile
9
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
|
||||
|
|
Loading…
Add table
Reference in a new issue