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

mainline cabal-edit #7337

Open
alok opened this issue Mar 20, 2021 · 7 comments
Open

mainline cabal-edit #7337

alok opened this issue Mar 20, 2021 · 7 comments

Comments

@alok
Copy link

alok commented Mar 20, 2021

the idea is to grow cabal to add some subcommands with sensible defaults. i'd be happy to implement if someone points me the right way and there's interest.

@emilypi
Copy link
Member

emilypi commented Mar 20, 2021

I think this is a wonderful idea, and would dovetail nicely with the cabal gen-bounds work, for which we wanted to add a write-in-place option that required a slightly better parser. If it's already done in this package, I see no reason to not include this. CC @fgaz @mightybyte. I'm happy to help get you started.

@fgaz
Copy link
Member

fgaz commented Mar 20, 2021

Is cabal-edit this project https://github.com/sdiehl/cabal-edit?

Sounds like an useful addition, but it'd have to overcome the limitations stated in the readme first, otherwise editing would not work on a good chunk of packages.
Another point to think about is how projects could affect the commands: eg. maybe add should check for compatibility with the rest of the project first.

@cartazio
Copy link
Contributor

a related idea i had (which maybe already exists?)
would be a cabal-explain : eg explain / list what the current named compoents are (eg libraries/test/executables), i dont know if theres actually a way to list those now? @fgaz ?

@gbaz
Copy link
Collaborator

gbaz commented Mar 21, 2021

Here's the main stuff that needs to be resolved for a proper roundtrip one way or another as I understand it: #5306

@alok
Copy link
Author

alok commented May 5, 2021

@gbaz looks like comment preserving exactprint is the blocker in #5306? where should i look to find that in the codebase?

@Mikolaj
Copy link
Member

Mikolaj commented Jun 26, 2021

@alok: exact-print is not done yet, though we'd love to have it and there's a related project: https://github.com/haskell/cabal/projects/9

@gbaz
Copy link
Collaborator

gbaz commented Aug 17, 2021

cabal edit should subsume this old ticket (--save is sort of like --add here). #1961

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

6 participants