Please refer to #1394 for the original discussion.
- Currently stack prints some output of its own before running the script:
Run from outside a project, using implicit global project config
Using resolver: lts-3.14 from implicit global project's config file: /var/home/harendra/.stack/global-project/stack.yaml
When used as interpreter no other output is desirable other than the script's output itself. In fact this should hold true for any stack exec command. That might interfere with the processing of the script output.
We can fix this by assuming --verbosity silent when invoked as interpreter.