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

extra-executables in cabal.project #9230

Open
fgaz opened this issue Sep 4, 2023 · 3 comments
Open

extra-executables in cabal.project #9230

fgaz opened this issue Sep 4, 2023 · 3 comments
Labels
re: devx Improving the cabal developer experience (internal issue) re: project-file Concerning cabal.project files type: enhancement

Comments

@fgaz
Copy link
Member

fgaz commented Sep 4, 2023

Describe the feature request
A new extra-executables field that specifies executables to be provided during development, such as linters and formatters. These should be solved independently from each other and from the main project.

The field should not contain executables that are needed to build the project. Those go in build-tool-depends, in the appropriate .cabal file

Additional context
Originally #7865 and #6952 (comment)

@mpickering
Copy link
Collaborator

I think this is a bit underspecified.

How is this field used? What commands would invoke these executables to be built, and how would they end up in the PATH?

@michaelpj
Copy link
Collaborator

I tend to agree. If we had a concept of a cabal-provided dev-shell, and the field was dev-tools or something, then it would make sense that when you go into the dev shell you get the dev tools on the path. But just saying they're "extra" is indeed rather unclear.

@andreabedini
Copy link
Collaborator

I would find this confusing since we already have extra-packages which are solved within the plan.

TBH I am -1 on adding dev environment management features to cabal.

If those executables have to solved independently; this would be equivalent to using cabal install to install them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: devx Improving the cabal developer experience (internal issue) re: project-file Concerning cabal.project files type: enhancement
Projects
None yet
Development

No branches or pull requests

5 participants