Bumps to GHC 9.4.7 (the version specified by the stack.yaml).
Adds a 'cache-bust' to the caching key (in case it is needed in the future).
Uses the stack.yaml for the key, not the GHC version.
Uses the Stack-supplied GHC (which will be cached). --system-ghc does nothing, if the system's GHC is not the version that Stack requires. So, Stack will have been fetching the required GHC in any event (given the stack.yaml).
Uses stack exec rather than stack run, as we know the executable has already been built.
Specifies --cabal-file-path stan.cabal in case other Cabal files are added in the future and to save stan from searching for Cabal files.
To explain:
stack.yaml
).--system-ghc
does nothing, if the system's GHC is not the version that Stack requires. So, Stack will have been fetching the required GHC in any event (given thestack.yaml
).stack exec
rather thanstack run
, as we know the executable has already been built.--cabal-file-path stan.cabal
in case other Cabal files are added in the future and to save stan from searching for Cabal files.