I’m looking into how I’ve invoked stack to turn a Haskell source file into an executable shell script before and comparing it to the official documentation.
In my VOD repository, I have this migration script which contains the following at the top:
The documentation now appears to recommend using stack script instead of stack runghc:
Though, it still supports runghc for backwards compatibility reasons.