Just tried to run the benchmarks on a project that I have converted from cabal to stack. Running stack bench
just prints out project-name-version: benchmarks
with no further output. Do I have to pass additional flags to stack to see the criterion output?
benchmark section for reference:
benchmark mainbench
type: exitcode-stdio-1.0
hs-source-dirs: src, bench
main-is: MainBench.hs
build-depends: base,
vector,
linear,
hmatrix,
hmatrix-gsl,
criterion,
random,
MonadRandom
ghc-options: -Wall
-O2
default-language: Haskell2010
Edit: this is on stack-0.1.6.0
(This is no duplicate of How to use stack bench :) )