I used
stack bench --profile --ba +RTS -hy -l
and this reported the error:
stack: the flag -hy requires the program to be built with -prof
I am confused by this as I thought stack bench --profile does build with -prof
I had no problem with
stack bench --profile --ba +RTS -hc -l
presumably because that does not require a build with -prof
Can anyone tell me what I am missing here?
(I am using Stack Version 3.1.1)