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 a script option to cabal init #10328

Open
philderbeast opened this issue Sep 6, 2024 · 2 comments
Open

Add a script option to cabal init #10328

philderbeast opened this issue Sep 6, 2024 · 2 comments

Comments

@philderbeast
Copy link
Collaborator

Running cabal init is convenient. Could we also add an option to generate a single-file cabal script? This will save having to remember the exact comment syntax.

@ulysses4ever
Copy link
Collaborator

Mildly against because the weight of the implementation doesn't seem to justify the profit...

@Bodigrim
Copy link
Collaborator

Bodigrim commented Sep 6, 2024

I was thinking just today about having it vice versa: it would be nice to ask cabal init to elaborate a standalone Cabal script file into a package. I often start prototyping in a single file with {- cabal: ... -}, but at some point I need to convert it into a full-fledged package.

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

3 participants