Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting custom project file in cabal script-metadata #6353

Open
jneira opened this issue Nov 14, 2019 · 0 comments
Open

Add support for setting custom project file in cabal script-metadata #6353

jneira opened this issue Nov 14, 2019 · 0 comments

Comments

@jneira
Copy link
Member

jneira commented Nov 14, 2019

Hi, in haskell-ide-engine there exist an script to build the project using shake. Actually the script has to be ran with cabal this way:

cabal v2-run install.hs --project-file install/shake.project <target>

I think @power-fungus mentioned that maybe the cabal script feature could be improved adding the option to set a custom project file in the script metadata and be able to run it simply with:

 cabal v2-run install.hs <target>

adding in the script somewhat like:

{- cabal:
build-depends:
    base
  , hie-install
project-file: install/shake.project
-}

I've not found any issue about, sorry if it already exists.

This one is related with #5698 cause you could set all available cabal.project-fields in the custom project file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants