While build
ing my Haskell programs with Stack, I'm trying to get the executable to be written to project/dist/
but no matter what command line arguments I use or config files I change, it always ends up in project/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/project/
.
After spending a decent amount of time looking at the command line arguments for the stack
command, as well as options in project.cabal
, Setup.hs
, and stack.yaml
, I can't seem to find how to configure the output location of stack build
.
How do you configure the executable output location for stack build
?