Here is the shebang+ that I was able to make work for a non-haskell project (i.e. no stack.yaml):
#!/usr/bin/env stack
-- stack --install-ghc --resolver lts-8.17 runghc --package cloud-seeder-0.1.0.0 --package optparse-applicative-0.14.0.0
This is fine but in order to upgrade to a new version of cloud-seeder I will have to research its stack.yaml to determine the extra dependencies.
What would be cool is a way to simply put the cloud-seeder version in the file and have it resolve from a known good resolver + extra packages.
Not familiar enough with stack/hackage to suggest effective ways of doing this but happy to discuss...
Here is the shebang+ that I was able to make work for a non-haskell project (i.e. no stack.yaml):
This is fine but in order to upgrade to a new version of cloud-seeder I will have to research its stack.yaml to determine the extra dependencies.
What would be cool is a way to simply put the cloud-seeder version in the file and have it resolve from a known good resolver + extra packages.
Not familiar enough with stack/hackage to suggest effective ways of doing this but happy to discuss...