Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
cabal-ghc calls ghc via cabal exec and so ghc has access to packages in cabal sandboxes for example