In development, I want to build everything with the help -O0to save time.
But when creating the same package in the CI system I want to use -O.
One of the options that I see is to have two different files stack.yamlthat differ in their own ghc-options, but then I would have to make all the changes stack.yamlin two places.
Having an alias for stack --ghc-options=-O0does not work, because I want to -O0apply only to local packages, and not to the snapshot, and there is no way to specify this on the command line, from what I know.
Are there any better options?
source
share