I have been running this command to build and run my program:
stack build && ./.stack-work/install/x86_64-osx/lts-2.14/7.8.4/bin/test
If the build ever fails, this does the right thing and doesn't run test. However, if I then run the same command right away without modifying any files, stack build returns a success code and then test is run.
I expect stack build to return non-success if the last build failed.
I have been running this command to build and run my program:
If the build ever fails, this does the right thing and doesn't run
test. However, if I then run the same command right away without modifying any files,stack buildreturns a success code and thentestis run.I expect
stack buildto return non-success if the last build failed.