It appears that my immediate assumption (that you just modify the stack.yml file) was wrong, and you also need to modify the cabal file.