You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A syntactic sugar in the form of a runghc option can also be provided. Though it will not be any
shorter compared to passing -hide-all-packages directly to ghc, it will perhaps be more
intuitive. One won't have to refer to the ghc manual as well as stack manual to know how to
specify ghc options to runghc. For example using --no-implicit-packages along with -- packages is more intuitive than ending the command with a ghc option like this-- -hide-all- packages.
It will be an option like stack runghc --no-implicit-packages --package ... which will automatically pass -hide-all-packages to ghc.
Several names have been used for this e.g. --standalone, --self-contained, --independent, --explicit-packages, --no-implicit-packages etc. I personally find the last one conveying the meaning more precisely but have no objection to others as well.
The text was updated successfully, but these errors were encountered:
In #1957@mgsloan proposed to make --standalone behavior as default and use stack exec -- runghc for the one off scripts when we do not want to enforce listing of all packages. I like that idea. Especially since it is in line with stack's reproducible results by default philosophy.
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨
I would actually prefer --no-implicit-packages in addition, for my current use case:
I would like to use the resolver in stack.yaml
I would like to make use of local packages in stack.yaml
I would like to use optparse-applicative to parse command line arguments
The first two mean I'm using runghc instead of script. The third is foiled because -- -hide-all-packages passes -hide-all-packages to the script's arguments as well.
Splitting from #1208, quoting from that issue:
It will be an option like
stack runghc --no-implicit-packages --package ...
which will automatically pass-hide-all-packages
to ghc.Several names have been used for this e.g.
--standalone, --self-contained, --independent, --explicit-packages, --no-implicit-packages
etc. I personally find the last one conveying the meaning more precisely but have no objection to others as well.The text was updated successfully, but these errors were encountered: